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
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
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,
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
: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 (
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
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
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
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
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
: [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
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
*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
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
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
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
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
17 matches
Mail list logo