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

bfo81 do-not-reply at jboss.com
Thu Aug 17 10:24:24 EDT 2006


I'm not sure if I understood your question correctly (sorry, German ;)).


  | @Stateful
  | @Scope(CONVERSATION)
  | @Name("whatEver")
  | public class WhatEverBean implements WhatEver {
  | 
  | @RequestParameter
  | private String someParam;
  | 
  | private String someParamCopy;
  | 
  | @Begin
  | public String begin() {
  |     someParamCopy = someParam;
  |     ...
  | }
  | 
  | @End
  | public String end() {...}
  | }
In this case, the injected request parameter stored in someParamCopy is available all the time from calling begin() till calling end(). Even any other property will keep its state during that time, unless it's changed by the code or by Seam (e.g. @In annotated properties get a new value during every request).

Is that about what you wanted to know?



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

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



More information about the jboss-user mailing list