]
Pete Muir commented on JBSEAM-1221:
-----------------------------------
Leo, the functionality provided by your endAndTo method is available in Seam core as
beforeRedirect on both @End and in pages.xml.
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: