At 12:11 PM -0600 1/9/05, Shihgian Lee wrote:
> [D] And finally, we have a PagePrep action which operates between the
 return from the Action and the tiles processing.  This is the thing
 I'm always talking about which provides us with a straightforward way
 to prepopulate forms, set up menus and select lists, and otherwise
 shepherd data around so that the Actions and the JSPs on either side
 can be a bit simpler and clearer.

Joe, can you elaborate a little bit more on how the PagePrep action works?

Here's an earlier post where I elaborated at some detail:

http://article.gmane.org/gmane.comp.jakarta.struts.devel/22034/match=pageprep

Is there some sort of ActionForm works with it? I have to
provide my own PagePrep action implementation to populate any forms
when returning from Action, right?

In our local environment, yes, there's a way of making a form available to the page preparation process so that values can be prefilled from system data when that's appropriate (as opposed to displaying a blank form or prefilling with user data after a validation failure.)


What we use here is not directly what I would propose for inclusion in Struts, but this message is the last thing I wrote about how I'm thinking about it:

http://article.gmane.org/gmane.comp.jakarta.struts.devel/24279

In our local environment, the page preparation code is in custom "Renderer" classes and requires a custom configuration; I'd rather use commons-chain commands for page prep and integrate the configuration into current Struts config style as much as possible.

Some mechanism for making a form available for prepopulation is one of my primary goals, because it's such a common use case, and because so many Struts developers have had to cook up their own solutions to the problem.

Comments and criticisms are always welcomed, although any substantial discussion about changes to the framework should probably move to the struts-dev list.

Joe

--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex


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



Reply via email to