You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Pa...@Dell.com on 2003/08/04 16:27:27 UTC

Pageflow proposal

Quick question, has anybody looked at the framework? Weve been focusing on
the question of whether or not workflow is appropriate for Struts. However,
there's a lot more here than just that. Ive used Struts in many production
projects, and found that it adds a great deal of productivity to the team.
Using the pageflow extension to build the example application was even more
productive. So this is more like a Struts 2.0 proposal than anything else. 

Ill give you an example. In the pageflow extension you can declare a
page-instance with mappings. 

<page-instance ref="Registration" name="Registration">
	<form-mappings>
		<mapping name="copyAllFrom" mapFrom="${session.user}"
mapTo="${session.user}" />
		<mapping name="action" mapFrom="${session.currentAction}"/>
	</form-mappings>
	<action name="addSubscription" ...
</page-instance>

What this actually does is copy all the values from the user object stored
in the session to the form everytime you go to the registration page and, if
you declare a mapTo, it copies any changed values back to the object
whenever you leave the page. This saves the developer from doing any form
handling coding at all. That alone saves tons of time. There are many other
productivity enhancements as well.

I guess what Im asking is could some of you guys download the example and
play with it? If you cant stand it then that's fine, but you might also find
that it is pretty easy to use and provides some real enhancement to Struts
1.1. The roadmap says we are going to potentially re-architect the platform
with the 2.0 release anyway, so pageflow is just a proposal for that.

Thanks,
Paul


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org