At 12:42 PM -0800 3/12/04, Hubert Rabago wrote:
Thanks for the clarification, Joe.  The copy of RequestUtils I really studied
was from late Dec/early Jan, so I just missed that method.  I remember
reading the message you linked to and I've been meaning to ask, what did you
mean by "prefilling forms with non-request data"?  Is it similar to one of
the issues I'm trying to solve with the formdef
http://www.rabago.net/struts/formdef/ plugin I'm working on?

It might be related to your feature for converting data from a business object to a form.


The general issue is this: user submits form; action processes; action forwards to another view, which has a different form. The different form shouldn't be blank, it should be pre-filled with data. Say, for instance, the first form is a search form which returns a single record, and the second form is for editing the data returned by the search.

Since only one ActionForm is passed into the action for executing, there's no convenient way to get data into the "output" form. You could have a page that retrieved values from request attributes, but then you can't use that same page/form for displaying validation errors to the user without copying the input form bean's properties into the same request attributes.

I just made a post to struts-dev to see if people wanted to engage in the "ViewController" discussion which popped up last fall. Interested parties are encouraged to join in over there.

Joe

PS this is the last msg on the old "ViewController" thread that I could dig up: http://thread.gmane.org/gmane.comp.jakarta.struts.devel/15486
It just kind of stalled out after that. I think now that you don't have to have an ActionMapping to get a FormBean, it might be easier to implement the rest, as long as people can agree on a design.
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining."
-- Jef Raskin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to