I have been following the advice on:
http://www.stripesframework.org/display/stripes/Best+Practices
about using my own custom ActionBeanContext.  

This has been working fine for me but as my web-applications grow, I
find that the custom ActionBeanContext gets filled up with a large
number of basically unrelated get and set methods for the various things
that I want to expose in the data model of my Freemarker templates.
Each action bean that I add to the web application comes with one of two
new things that it wants to make available to the presentation layer and
as I add the get and set methods to the custom ActionBeanContext to
inject those things into the session I get the kind of clutter that I
described above.

In trying to minimise this clutter, I have been finding myself putting
relatively primitive objects into the session and then using calls from
within my presentation layer to mold them into exactly the information
that I want to present.  That seems to be putting too much burden on the
presentation layer and I would prefer to see that kind of data
preparation work being done in either my action beans or in a layer
closer to the actual underlying data model.

Any thoughts on how to get this balance right?  Should I just get over
it and stuff my custom ActionBeanContext full of get and set methods
that are serving entirely different classes of purposes?

Thanks

Geoff Shuetrim

On Sun, 2008-04-13 at 20:31 -0500, Gregg Bolinger wrote:
> Hey everyone.  I'm in the processing of trying to line up my next gig as 
> my current one is coming to an end in the next several weeks.  I'd 
> really like to work with Stripes so if any of you know of any 1099 where 
> remote work is possible I'd really appreciate it if you'd let me know.
> 
> Thanks.
> 
> Gregg
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to