-
1. Re: how to
pdpantages Aug 9, 2007 5:52 PM (in response to henrik.lindberg)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; }
-
2. Re: how to
henrik.lindberg Aug 10, 2007 12:25 AM (in response to henrik.lindberg)I am using a combination of page parameters and ui:param to pass the viewid of the caller around.
I then use a s:link where the view is set with a #{param['backLinkId']} which works great, but I would prefer something less hardwired.
In fact, I pass two parameters around (as I support two levels of 'getting back').
I will probably end up implementing a general purpose breadcrumb bean. -
3. Re: how to
pdpantages Aug 10, 2007 12:36 AM (in response to henrik.lindberg)Hi henrik,
Maybe the Conversation and/or ConversationStack classes could help with this?
http://docs.jboss.com/seam/1.2.1.GA/api/ -
4. Re: how to
pmuir Aug 10, 2007 5:20 AM (in response to henrik.lindberg)"henrik.lindberg" wrote:
I am using a combination of page parameters and ui:param to pass the viewid of the caller around.
This sounds very similar to the pattern we are using in seam-gen to do this (obviously, our preferred pattern). Get Seam CVS, create a project with seam-gen and take a look.