[jboss-user] [JBoss Seam] - Can a var be updated from @Resource and a regular JSF form

cingram do-not-reply at jboss.com
Wed Mar 14 13:32:16 EDT 2007


I have a var that is in one of my SFSB. The value is set from 1 of 2 sources. Either it is passed in on the URL, or it is set from a JSF entry page. The problem I am coming across is once I set the @RequestParameter annotation on the var it is no longer updated from the JSF page. It is however updated from the URL. If I remove the annotation it is can be updated from the page but obviously it won't be updated from the URL. I assume this happens because it isn't on the URL and gets over written with a null from the injection. Is it possible to  have a var that is updated from both a JSF page and a url annotation? Am I doing some thing wrong?

 The code is very simple


  | @RequestParameter(value="pid")
  | private String myVar;
  | 
in the JSF page 


  | <h:inputText id="value" required="true"                          value="#{manager.myVar}"/>
  | 

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

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



More information about the jboss-user mailing list