[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1221) propagation=drop

Leo Baschy (JIRA) jira-events at lists.jboss.org
Mon Apr 23 20:03:33 EDT 2007

    [ http://jira.jboss.com/jira/browse/JBSEAM-1221?page=comments#action_12360298 ] 
Leo Baschy commented on JBSEAM-1221:

What I'm asking for is a syntax for a s:link to another view (!) that doesn't require the page author to think in terms of an action method in order to end the conversation.

If the conversation was holding a lot of state (e.g. a tree of data) that is stale in the real world (real time changes) then it makes sense to end the conversation when going on to another view.  Plain old navigation, s:link to another view, but please with propagation="drop".

> propagation=drop
> ----------------
>                 Key: JBSEAM-1221
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1221
>             Project: JBoss Seam
>          Issue Type: Feature Request
>    Affects Versions: 1.2.1.GA
>         Environment: all
>            Reporter: Leo Baschy
>         Assigned To: Gavin King
> Use is to be in
> <s:link view="/myOther.xhtml" propagation="drop" value="Outta Here" />
> propagation="none" is almost the same, but "none" leaves conversations stored in an inactive state until they timeout.  One might not want that, either not to use storage, or not to allow to come back, etc.
> To reiterate what is specified and has been said, but still may be puzzling at times, specifically when used with s:link view="/any.xhtml", propagation="end" has effect at the end of the target page.
> propagation="drop" should be like propagation="none" combined with the destruction of "end".  As a matter of symbolism, if you "drop" it then it breaks and does no longer exist.
> For now one can get the effect by instead doing this (note the funny spelling of "conversaction" != "conversation"):
> <s:link action="#{conversaction.endAndTo('/myOther.xhtml')}" value="Outta Here" />
> backed by
> import org.jboss.seam.annotations.Name;
> import org.jboss.seam.core.Conversation;
> @Name("conversaction")
> public class Conversaction {
>   public String endAndTo(String viewId) {
>     Conversation.instance().end();
>     return viewId;
>   }
> }
> Would be nice to avoid the redirect.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list