0 Replies Latest reply on Mar 24, 2014 8:55 AM by Master M1nd

    JSF 1.2_15, Richfaces 3.3.3 datatable re-render problem

    Master M1nd Newbie

      Hi all,

       

      i have been previously using JBoss eap 4.3 .... which is running JSF version 1.2_09 ... the below was running perfectly fine

      After upgrade to JBoss eap 6.2 i've got problems partially rerendering a rich:datatable

       

      The checkbox in the header works fine .... but when clicking the checkbox in one row that rerenders the "t0panel" (part of the datatable) subsequent

      sorting by column rendering element.id is broken ...

       

      debug output

       

      The relevant code snippet is as follows:

       

      <a4j:outputPanel id="outerHolder">

      <rich:dataTable binding="#{mybean.datatable}" width="100%" border="0"

              onRowMouseOver="this.style.backgroundColor='#E1E1E1'" status="tableStatus"

              onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"

              id="myList" value="#{mybean.somelist}" var="element"

              rows="#{someotherbean.itemsPerPage}">

       

          <rich:column sortBy="#{element.id}">

              <f:facet name="header">

                  <h:outputText value="#{msg['somebundletext']}"/>

              </f:facet>

              <center><h:outputText value="#{element.id}"/></center>

          </rich:column>

       

          <rich:column>

              <f:facet name="header">

              <a4j:outputPanel id="t0panel">

                  <h:selectBooleanCheckbox id="t0" value="#{mybean.allSelected}">

                        <a4j:support event="onclick" action="#{mybean.selectWholePage}" ajaxSingle="true" reRender="outerHolder, somethingoutside"/>

                  </h:selectBooleanCheckbox>

               </a4j:outputPanel>

              </f:facet>

              <center>

                  <h:selectBooleanCheckbox value="#{element.checked}">

                      <a4j:support event="onclick" action="#{mybean.addToSelection}" ajaxSingle="true" reRender="t0panel, somethingoutside"/>

                  </h:selectBooleanCheckbox>

              </center>

          </rich:column>   

       

      </rich:dataTable

      <a4j:outputPanel>