[jboss-user] [JBoss Seam] - Re: @RequestParameter value become null in conversation sfsb

gus888 do-not-reply at jboss.com
Thu Aug 17 10:56:50 EDT 2006


Hi Bfo81,

Thank you very much for your detailed explanation. Yes, you exactly answered my question. Thanks a lot. My second question is whether it is possible to improve conversation SFSB functionality in the future to save the code: "someParamCopy = someParam;" in @Begin method. For example, when click <h:commandLink value="Begin" action="#{testBean.begin}">
  | 	<f:param name="someParam" value="1"/>
  | </h:commandLink>the conversation SFSB will hold the "someParam" param in session bean until call @End end(). The conversation SFSB should look like:
@Stateful
  | @Scope(CONVERSATION)
  | @Name("testBean")
  | public class TestBean implements Test {
  | 
  | 	@RequestParameter
  | 	private String someParam;
  | 
  | 	private String someParamCopy;
  | 
  | 	@Begin
  | 	public String begin() {
  | 		//someParamCopy = someParam; save the code
  | 		...
  | 	}
  | 
  | 	@End
  | 	public String end() {
  | 		someParam // have the value 1
  | 	}
  | }	
But, currently your idea is best to solve my first question. Thank you.

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

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



More information about the jboss-user mailing list