We have a screen where the user can enter an id into a field or search for the 
id by clicking a link.  My approach to this was to have a s:link button that 
nests a conversation when the user clicks the search button.  After fixing a 
small problem in the HtmlLink class (see 
[http://jira.jboss.com/jira/browse/JBSEAM-222]JBSEAM-222[/url]), I was able to 
get the nesting to occur correctly.  

However, I need to be able to pop the user back to the parent conversation if 
they click a cancel button when they are on the search screen.  This could be 
done in one of two ways:

1. Add a method to my search component that uses the same switch conversation 
technique as the Switcher component.
2. Use a simple s:link that would switch the user back to the parent 
conversation.

I would prefer using the s:link since it is so much simpler.  How do I do this?

I would expect the following code to do this : 
<s:link  
  |     rendered="#{conversation.parentId!=null}"
  |     value="Cancel" action="#{conversation.pop}"
  |     styleClass="button"  style="button"/>

However, Conversation.pop() only swapsthe workspace.  Shouldn't it also do a 
redirect just like the Switcher component?  Maybe I'm misunderstanding the use 
of the Conversation.pop() method.  

Thanks.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940270


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to