On Saturday 12 December 2009 00:24:41 Dale Newfield wrote:
> Gabriel Belingueres wrote:
> > built-in the web framework
> 
> In order to do this we'd need to add in some information in the form and
> in every link leading from one page of the form to another so that it's
> constantly submitted to the server to keep the user associated with the
> right conversation.
> 
> The former could be done by adding a hidden element in the s:form
> freemarker templates, and adding an interceptor that notices that value
> and does the right thing (sortof like the checkbox interceptor, but
> instead of modifying the request parameters it has to swap in the target
> object -- I guess this only makes sense when used in combination with
> the modelDriven framework (which I've always avoided)).
> 
> The latter is non-trivial (well, the same interceptor would work).  It
> would mean context-sensitive changes to the output of the URL tag.  It
> wouldn't be too tough for the url tag to look and see if it's inside a
> s:form tag, but what about other links on the page outside the bounds of
> the form?  What about ones generated before the form open tag?
> 
Dumb question, but why not have a seperate set of "wizard" tags and avoid 
having to guess the context? Or maybe even just an additional "wizard='true' 
attribute?

Regards

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

Reply via email to