Hi all,

I find that the name @PageScope can be easily confused with JSP
pageScope[1], which is very different from what we are trying to do here.
Can you think of a better name for this?

[1] http://docs.oracle.com/javaee/5/tutorial/doc/bnahq.html#bnaij

Cheers,

--
Samuel Santos
http://www.samaxes.com/


On Sun, Apr 8, 2012 at 4:18 PM, Chut Yee <yeec...@gmail.com> wrote:

> 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
>
------------------------------------------------------------------------------
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