the first value binding expression is valid if you can call:
userBean.getCenter().getCenterId();
- it looks as if getCenter() returns null in your case...
regards,
Martin
On 6 Jan 2005 15:33:20 -0000, mfaine <[EMAIL PROTECTED]> wrote:
> 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
>