Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - Re: how to

scott.stark@jboss.org

2007-08-09


Hi henrik,

I have been doing this by passing a parameter when the nested conversation is started. The backing bean (SFSB in the nested conv. context ) grabs the parameter and keeps it in a String var for later use.

I am hard coding the outcomes,
If you find a better way, please lmk.


| <s:button
|   value="Details"
|   propagation="nest"
|   action="#{eventEditor.showEventDetails}" >
|   <f:param name="seqNum" value="#{alarmRow.sequenceNumber}"/>
|   <f:param name="ctx" value="servicealarmdetails"/>
| </s:button>
|


| @RequestParameter
| private String ctx;
|
| public String showEventDetails()
| {
|   jsfOutcome = ctx;
|
|   if ( jsfOutcome == null)
|     jsfOutcome = "someNonNullDefault";
|     ...
|     ...
| }
|
| @End(beforeRedirect=true)
| public String done()
| {
|   return this.jsfOutcome;
| }
|


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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072742
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.