Re: [Stripes-dev] Session annotation

2007-11-09 Thread Poitras Christian
EMAIL PROTECTED] On Behalf Of Jasper Fontaine Sent: Tuesday, November 06, 2007 5:38 AM To: Stripes Development List Subject: Re: [Stripes-dev] Session annotation true, good point otoh, the abstract concept of a 'session' remains the same: objects that are remembered for a long time. i don&#x

Re: [Stripes-dev] Session annotation

2007-11-06 Thread Jasper Fontaine
true, good point otoh, the abstract concept of a 'session' remains the same: objects that are remembered for a long time. i don't care whether we call it session, long conversation, wizard or flashscope (ok not really an apt comparison) ;) for your example you'd only need to switch the interc

Re: [Stripes-dev] Session annotation

2007-11-06 Thread VANKEISBELCK Remi
Hi there, The @Session annotation is pretty cool, and inline with the Stripes spirit ! Nice stuff, for those using the HttpSession ;-P Now, just to make tings clear, this is not a real alternative for ActionBeanContext overriding... When you add methods to your own subclass of ActionBeanContext,

Re: [Stripes-dev] Session annotation

2007-11-06 Thread Jasper Fontaine
Poitras Christian wrote: > That's what I like about open source! Suggestions like this one is very > interesting to add. > It wouldn't be difficult to add a fieldKey (or key) attribute to annotation > thus enabling sharing of a field between actionbeans. > > Example : > public class ActionBean1

Re: [Stripes-dev] Session annotation

2007-11-05 Thread Poitras Christian
:50 PM To: Stripes Development List Subject: Re: [Stripes-dev] Session annotation +1, i think it's slick little addition that could come in handy when needed. code looks good, how about changing the actionbean parameter type in saveFields, restoreFields and getSessionFields to Class? also (

Re: [Stripes-dev] Session annotation

2007-11-05 Thread Jasper Fontaine
OTECTED] On Behalf Of Poitras > Christian > Sent: Monday, November 05, 2007 10:17 AM > To: Stripes Development List > Subject: Re: [Stripes-dev] Session annotation > > Hi. > > I updated my interceptor and annotation and I think I'm very close to a final

Re: [Stripes-dev] Session annotation

2007-11-05 Thread Poitras Christian
Once I complete the tests, I'll add a Enhancements JIRA. Christian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Poitras Christian Sent: Monday, November 05, 2007 11:39 AM To: Stripes Development List Subject: Re: [Stripes-dev] Session annotati

Re: [Stripes-dev] Session annotation

2007-11-05 Thread Poitras Christian
to see it work directly. Christian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Newman, John W Sent: Monday, November 05, 2007 10:40 AM To: Stripes Development List Subject: Re: [Stripes-dev] Session annotation If this is well tested & stable I vote fo

Re: [Stripes-dev] Session annotation

2007-11-05 Thread Newman, John W
ilto:[EMAIL PROTECTED] On Behalf Of Poitras Christian Sent: Monday, November 05, 2007 10:17 AM To: Stripes Development List Subject: Re: [Stripes-dev] Session annotation Hi. I updated my interceptor and annotation and I think I'm very close to a final version. I included my classes in this

Re: [Stripes-dev] Session annotation

2007-11-05 Thread Poitras Christian
elder Sent: Sunday, November 04, 2007 6:20 AM To: Stripes Development List Subject: Re: [Stripes-dev] Session annotation Hi Christian, ask Tim to create an account for you (it's best to use the private contact address that can be found in the wiki). If you want to you can also send me

Re: [Stripes-dev] Session annotation

2007-11-05 Thread Poitras Christian
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kai Grabfelder Sent: Sunday, November 04, 2007 6:20 AM To: Stripes Development List Subject: Re: [Stripes-dev] Session annotation Hi Christian, ask Tim to create an account for you (it's best to use the private contact address that c

Re: [Stripes-dev] Session annotation

2007-11-04 Thread Kai Grabfelder
CTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jasper Fontaine > Sent: Friday, November 02, 2007 11:42 AM > To: Stripes Development List > Subject: Re: [Stripes-dev] Session annotation > > Good stuff > In our project we don't need this right now, but it might be a useful > ad

Re: [Stripes-dev] Session annotation

2007-11-02 Thread Jasper Fontaine
*throws* IllegalAccessException { > *for* (Field field : fields) { > *if* (!field.isAccessible()) { > field.setAccessible(*true*); > } > Object value = context.get(getFieldKey(field)); > // If value is null and field is primitive, don't set value. > *if* (value != *null* || !field.getType().isPrimitive()) { > field.set(actionBean, value

Re: [Stripes-dev] Session annotation

2007-11-02 Thread Poitras Christian
reate a wiki page. How do I register to create a page? Christian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jasper Fontaine Sent: Friday, November 02, 2007 11:42 AM To: Stripes Development List Subject: Re: [Stripes-dev] Session annotation Good stu

Re: [Stripes-dev] Session annotation

2007-11-02 Thread Poitras Christian
ewman, John W Sent: Friday, November 02, 2007 11:06 AM To: Stripes Development List Subject: Re: [Stripes-dev] Session annotation Hi, What I've typically done for this is the following: Class ActionBean { DateRange dateFilter; @Before(stages={LifecycleStage.BindingAndVal

Re: [Stripes-dev] Session annotation

2007-11-02 Thread Newman, John W
ut to the context before the page is displayed. easy John From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Poitras Christian Sent: Friday, November 02, 2007 10:09 AM To: stripes-development@lists.sourceforge.net Subject: [Stripes-dev] Session annotation Hi! I'v

[Stripes-dev] Session annotation

2007-11-02 Thread Poitras Christian
Hi! I've added an annotation and an interceptor to Stripes to store ActionBean fields in session and restore them automatically on subsequent requests. I wanted to share this "plugin" with people of stripes. Where can I post such information and classes. The annotation is below. Christian