[
http://www.stripesframework.org/jira/browse/STS-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11196#action_11196
]
Christian Poitras commented on STS-429:
---------------------------------------
Your suggestion of @Session(remove="/ActionBean1.action#complete") is
interesting, but it can become very hard to keep track of what is to be remove
because I would need to remember which bean is connected to others...
Currently, if I have 2 action beans.
public class RemoveActionBean implements ActionBean {
/**
* Person.
*/
@Session(remove={"cancel", "complete"}, key="RemoveActionBean#person")
private Person person;
}
public class RemoveActionBean2 implements ActionBean {
/**
* Person.
*/
@Session(remove={"cancel"}, key="RemoveActionBean#person")
private Person person;
}
Person field is remove upon calling any of these methods.
RemoveActionBean.cancel
RemoveActionBean.complete
RemoveActionBean2.cancel
Note that since "complete" is not in remove attribute for RemoveActionBean2,
calling complete on RemoveActionBean2 will not remove the field from session.
I guess it is very close to your suggestion (it matches perfectly the first
part).
If it's enough for now, I will post the new file to JIRA.
> @Session annotation to save and restore fields automatically
> ------------------------------------------------------------
>
> Key: STS-429
> URL: http://www.stripesframework.org/jira/browse/STS-429
> Project: Stripes
> Issue Type: New Feature
> Reporter: Christian Poitras
> Priority: Minor
> Attachments: session-plugin.jar, session-plugin2.jar,
> session-plugin3.jar, session-plugin4.jar, session-plugin5.jar
>
>
> I've added a @Session annotation and an interceptor that automatically saves
> annotated fields in session and restores the fields on following request.
> This could be a great add-on to Stripes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development