Is the following allowed:

 <h:selectOneMenu id="centermenu" value="#{userBean.center.centerId}">

where center is an object (bean) of userBean?

I keep getting this error:

javax.faces.el.PropertyNotFoundException: Error testing property 'centerId'
in bean of type null
 

I also tried 

<h:selectOneMenu id="centermenu" value="#{userBean[center.centerId]}">

but instead I got this error message:

javax.faces.el.PropertyNotFoundException: Error testing property 'null' in
bean of type gov.nasa.msfc.repository.submittal.view.bean.UserBean

-Mark

Reply via email to