Reply in-line

On Dec 11, 2007 10:19 AM, simon <[EMAIL PROTECTED]> wrote:
> Hi Dave,
> On Tue, 2007-12-11 at 09:08 -0800, Dave wrote:
> > Hi,
> > <h:panelGroup rendered="#{bean.foo != null}">
> >
> > <t:tree value="#{bean.foo.treeModel}">
> > ...
> > </t:tree>
> >
> > </h:panelGroup>
> >
> > bean is not null.
> > Why did I got the following error:
> >
> > javax.faces.el.PropertyNotFoundException: Base is null: .foo
> >         at
> > org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:477)
> >         at
> > org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:251)
> >         at
> > org.apache.myfaces.custom.tree.taglib.TreeTag.doStartTag(TreeTag.java:349)
>
> Either #{bean} or #{bean.foo} is null (cannot remember which).

The base of an EL expression is the root. So in this case it looks
like #{bean} is null

>
> Obviously the expression therefore cannot be evaluated.
>
> Regards, Simon
>
>

Reply via email to