I recant.  The <s:link view="/myOther.xhtml" action="#{conversation.end}" 
value="Outta Here" /> doesn't work like an action on the source page, but on 
the target page.

Now I have tested it works to write one component like

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;
  |     }
  | }

and to have link from source page /my.xhtml like

<s:link action="#{conversaction.endAndTo('/myOther.xhtml')}" value="Outta Here" 
/>

On the down side it appears that any <f:param name="paramToMyOtherName" 
value="paramToMyOtherValue" /> doesn't arrive at the target page.

Also, regrettably, it does cost an extra redirect.

Would have been nicer instead to have used a built-in

<s:link view="/myOther.xhtml" propagation="kill" value="Outta Here" />

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034398#4034398

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034398
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to