myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simon <simon.kitch...@chello.at>
Subject Re: <t:tree> base is null
Date Tue, 11 Dec 2007 17:19:44 GMT
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


Mime
View raw message