Hi everybody!

I have a problem and don't know how to deal with it at all. I have a datatable with a single column in which I've put a tree table:

<h:dataTable width="100%" var="layerInfo" value="#{mLayerListForm.layerList}">
  <h:column>
   <h:panelGrid styleClass="tableColored" width="100%">
    <h:panelGrid columns="3">
     <h:outputText value="#{layerInfo.layer.id}"/>
     <h:outputText value="#{layerInfo.layer.name}"/>
     <h:commandLink styleClass="greyBlue">
      <h:outputText value="Редактирай"/>
     </h:commandLink>
    </h:panelGrid>
    <h:panelGroup rendered="#{layerInfo != null}">
<t:tree columnClasses="styleText,styleText" var="area" value="#{layerInfo.areaTree}">
      <t:column>
       <h:outputText value="#{area.id}"/>
      </t:column>
      <t:treeColumn>
       <h:outputText value="#{area.name}"/>
      </t:treeColumn>
     </t:tree>
    </h:panelGroup>
   </h:panelGrid>
  </h:column>
 </h:dataTable>

layerList is empty and I get:

javax.faces.el.PropertyNotFoundException: Base is null: layerInfo
at org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:455) at org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:242) at org.apache.myfaces.custom.tree.taglib.TreeTag.doStartTag(TreeTag.java:346) at org.apache.jsp.pages.LayerList_jsp._jspx_meth_t_tree_0(org.apache.jsp.pages.LayerList_jsp:4207) at org.apache.jsp.pages.LayerList_jsp._jspx_meth_h_panelGroup_3(org.apache.jsp.pages.LayerList_jsp:4179) at org.apache.jsp.pages.LayerList_jsp._jspx_meth_h_panelGrid_10(org.apache.jsp.pages.LayerList_jsp:4027) at org.apache.jsp.pages.LayerList_jsp._jspx_meth_h_column_0(org.apache.jsp.pages.LayerList_jsp:3833)

The strange thing is that the exception is thrown before the mLayerListForm.getLayerList is called (actually as the exception is thrown the method is never called). It's MyFaces 1.1.1. I have not worked with tree or tree table and don't have a clue what the problem might be.

Please help.

Jana

Reply via email to