3 Replies Latest reply on Aug 4, 2007 8:22 AM by Shigeaki Wakizaka

    method expressions with parameter in the nested <h:dataTable

    Shigeaki Wakizaka Newbie

      Hi.

      I have a problem that a method expressions with parameter in the nested <h:dataTable> doesn't work.

      this is the situation

      Parent class has a List named children. and xhtml is like this;

       <h:dataTable id="parent" var="parent" value="#{parents}">
       <h:column>
       <h:outputText value="#{parent.field1}"/>
       </h:column>
       <h:dataTable value="#{parent.children}" var="child" id="childrenList">
       <h:column>
       <h:outputText value="#{child.field1}"/>
       </h:column>
       <h:column>
       <h:outputText value="#{child.field2}"/>
       </h:column>
       <h:column>
       <s:link id="someAction" value="SomeAction"
       action="#{someAction.do(child)}" />
       </h:column>
       </h:dataTable>
       </h:dataTable>


      browsered html is fine.
      My problem is , in someAction#do method, child object is not null, but all field is a default value of the field type;

      Could you give me any hints?

      Thanks in advance.

      Shige