2 Replies Latest reply on Oct 22, 2007 8:46 AM by Ilya Shaikovsky

    InputText within SubTable

    liu liquan Newbie

      Hello, guys, i have a problem about the subtable with inputText within it, like:

      <h:panelGroup id="tablepanel">
      ......
      <rich:dataTable id="table">
       <a4j:support event="onclick" reRender="tablepanel"/>
      
       ......
      
       <rich:column>
       <h:inputText id="input" value="#{bean1.field}" />
       </rich:column>
      
       <rich:subTable id="subTable">
       <rich:column>
       <h:inputText id="subinput" value="#{bean.field}"/>
       </rich:column>
       </rich:subTable>
      
      </rich:dataTable>
      
      </h:panelGroup>
      


      The rendered html input tag has id like "form:table:subTable:0:subinput"

      But after clicking on a row, the HtmlRendererUtils says "There should always be a submitted value for an input if it is rendered, its form is submitted, and it is not disabled or read-only." i find that when HtmlRendererUtils get the client id of inputText, it got "form:table:subTable:subinput". Thus the submitted value cannot be found in request param map.

      And the value of the inputText which does not reside in subTable is submitted sucessfully and updated to back bean.

      Am i missing something?