Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-2815

DataScroller compatibility with table Sorting and Filtering

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.2.2
    • Component/s: None
    • Labels:
      None
    • Affects:
      Documentation (Ref Guide, User Guide, etc.)

      Gliffy Diagrams

        Issue Links

          Activity

          Hide
          skidvd Todd Gould added a comment -

          A pageable datatable does not work with sortable headers.
          After displaying the second page (or any other that the first), it's only possible to sort once. Afterwards if a second sorting is started, the a4j:status is on running for minutes but nothing happens in the UI. If you switch back to the first page, everything works just fine.

          Details of error at http://jboss.com/index.html?module=bb&op=viewtopic&p=4147820#4147820

          Show
          skidvd Todd Gould added a comment - A pageable datatable does not work with sortable headers. After displaying the second page (or any other that the first), it's only possible to sort once. Afterwards if a second sorting is started, the a4j:status is on running for minutes but nothing happens in the UI. If you switch back to the first page, everything works just fine. Details of error at http://jboss.com/index.html?module=bb&op=viewtopic&p=4147820#4147820
          Hide
          guarf Mario Baracu added a comment -

          Please fix this bug !

          Show
          guarf Mario Baracu added a comment - Please fix this bug !
          Hide
          m.a.g Denis Petrunin added a comment -

          I've found a workaround:
          1) put dataScroller and dataTable in the same form
          2) specify ajaxSingle="false" for dataScroller

          In other words, hidden data located in dataTable should be sent/updated with ajax request/response.

          Show
          m.a.g Denis Petrunin added a comment - I've found a workaround: 1) put dataScroller and dataTable in the same form 2) specify ajaxSingle="false" for dataScroller In other words, hidden data located in dataTable should be sent/updated with ajax request/response.
          Hide
          Konstantin.Mishin Konstantin Mishin added a comment -

          Attribute "reRender" was added to DataTable.

          Show
          Konstantin.Mishin Konstantin Mishin added a comment - Attribute "reRender" was added to DataTable.
          Hide
          mvitenkov Mikhail Vitenkov added a comment -

          Verified at 3.2.2-SNAPSHOT

          Show
          mvitenkov Mikhail Vitenkov added a comment - Verified at 3.2.2-SNAPSHOT
          Hide
          smukhina Svetlana Mukhina added a comment -

          docsupdated

          Show
          smukhina Svetlana Mukhina added a comment - docsupdated
          Hide
          ilya_shaikovsky Ilya Shaikovsky added a comment -

          <ui:composition xmlns="http://www.w3.org/1999/xhtml"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:a4j="http://richfaces.org/a4j"
          xmlns:rich="http://richfaces.org/rich">
          <h:form>
          <rich:dataTable value="#

          {capitalsBean.capitals}

          " var="cap" rows="20" reRender="ds" id="simpletable">
          <f:facet name="header">
          <rich:columnGroup>
          <rich:column colspan="2" >
          <h:outputText value="Filtering Example"/>
          </rich:column>
          <rich:column breakBefore="true">
          <h:outputText value="State Name"/>
          </rich:column>
          <rich:column>
          <h:outputText value="State Capital"/>
          </rich:column>
          </rich:columnGroup>
          </f:facet>
          <rich:column filterBy="#

          {cap.state}" filterEvent="onkeyup">
          <f:facet name="header">
          <h:outputText value=" " title="Hack due to bug. Shuold be remoevd till release"></h:outputText>
          </f:facet>
          <h:outputText value="#{cap.state}

          "/>
          </rich:column>
          <rich:column filterBy="#

          {cap.name}" filterEvent="onkeyup">
          <h:outputText value="#{cap.name}

          "/>
          </rich:column>
          <f:facet name="footer">
          <rich:datascroller id="ds" for="simpletable" renderIfSinglePage="false"></rich:datascroller>
          </f:facet>
          </rich:dataTable>
          </h:form>
          </ui:composition>

          This doesn't works properly.

          But will works if move scroller out of the table.

          Show
          ilya_shaikovsky Ilya Shaikovsky added a comment - <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"> <h:form> <rich:dataTable value="# {capitalsBean.capitals} " var="cap" rows="20" reRender="ds" id="simpletable"> <f:facet name="header"> <rich:columnGroup> <rich:column colspan="2" > <h:outputText value="Filtering Example"/> </rich:column> <rich:column breakBefore="true"> <h:outputText value="State Name"/> </rich:column> <rich:column> <h:outputText value="State Capital"/> </rich:column> </rich:columnGroup> </f:facet> <rich:column filterBy="# {cap.state}" filterEvent="onkeyup"> <f:facet name="header"> <h:outputText value=" " title="Hack due to bug. Shuold be remoevd till release"></h:outputText> </f:facet> <h:outputText value="#{cap.state} "/> </rich:column> <rich:column filterBy="# {cap.name}" filterEvent="onkeyup"> <h:outputText value="#{cap.name} "/> </rich:column> <f:facet name="footer"> <rich:datascroller id="ds" for="simpletable" renderIfSinglePage="false"></rich:datascroller> </f:facet> </rich:dataTable> </h:form> </ui:composition> This doesn't works properly. But will works if move scroller out of the table.

            People

            • Assignee:
              Konstantin.Mishin Konstantin Mishin
              Reporter:
              ilya_shaikovsky Ilya Shaikovsky
            • Votes:
              19 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development