[jboss-user] [JBoss Seam] - Re: where is <h:inputText> going?

dbatcn do-not-reply at jboss.com
Wed Aug 2 15:17:13 EDT 2006


Gavin's responses came in while I was composing mine.  Thank you for pointing out my JSF error:

"gavin.king at jboss.com" wrote : "#{foo}" is not a valid value-binding expression in JSF. You need to use "#{foo.someProperty}".

I changed my interface BQManager to include:


  |     public void setNameForNewBaz(String nameForNewBaz);
  |     public String getNameForNewBaz();
  | 

and my code for that property in class BQManagerBean to:


  |     @In(required=false)
  |     public void setNameForNewBaz(String nameForNewBaz) {
  |         log.debug("BQManagerBean.setNameForNewBaz(): called with arg:"+nameForNewBaz);
  |         this.nameForNewBaz = nameForNewBaz;
  |     }
  |     @Out(required=false)
  |     public String getNameForNewBaz() {
  |         log.debug("BQManagerBean.getNameForNewBaz(): returning:"+nameForNewBaz);
  |         return nameForNewBaz;
  |     }
  |     private String nameForNewBaz;
  | 

and the referencing part of bqmgr.xhtml to:


  |     <h:inputText value="#{bqManager.nameForNewBaz}"/>
  | 

but null is being passed to the setter multiple times as seen in this log snippet:

anonymous wrote : 
  | 2006-08-02 11:27:34,126 DEBUG [org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener] beginning transaction prior to phase: RENDER_RESPONSE(6)
  | 2006-08-02 11:27:35,018 DEBUG [com.orgmob.play.BQManagerBean] BQManagerBean.setNameForNewBaz(): called with arg:null
  | 2006-08-02 11:27:35,065 DEBUG [com.orgmob.play.BQManagerBean] BQManagerBean.setNameForNewBaz(): called with arg:null
  | 2006-08-02 11:27:35,081 DEBUG [com.orgmob.play.BQManagerBean] BQManagerBean.setNameForNewBaz(): called with arg:null
  | 2006-08-02 11:27:35,112 DEBUG [org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener] committing transaction after phase: RENDER_RESPONSE(6)
  | 2006-08-02 11:27:35,112 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
  | 

and the problem with no value for the "quux" variable (or null being injected?) remains.

I could give more of the log if that would be helpful.  So far as I can tell, both inputText values are vanishing.

-David

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

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



More information about the jboss-user mailing list