Thanks Will Hartung for providing some some very sensible ideas. I think
something like this should work:

(1) Add an annotation org.stripestuff.pagescope.PageScope

(2) Page Rendering - interceptor at After EventHandling.
- Collects the fields annotated with @PageScope into a Map.
- Serialize the Map, encrypt it, and adds it to a Request attribute _pageScope.

(3) The JSP page. Adds a hidden field:
  <stripes:form .....>
    <stripes:hidden name="_pageScope" value="${_pageScope}"
  </stripes:form>

(4) Form postback - interceptor at Before BindingAndValidation
- decrypt _pageScope, and marshal the serialized map.
- Loop through the @PageScope annoted variable in action bean, and try to locate
an object in the Map.


Any comments?

My work schedule mandates I can only squeeze time during weekends - and I am
going away for the next 3 weekends! Anybody like to volunteer?

Best regards,
Chut


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to