You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by simon <si...@chello.at> on 2007/12/11 18:19:44 UTC
Re: base is null
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).
Obviously the expression therefore cannot be evaluated.
Regards, Simon
Re: base is null
Posted by Andrew Robinson <an...@gmail.com>.
Reply in-line
On Dec 11, 2007 10:19 AM, simon <si...@chello.at> 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
>
>