RichFaces
  1. RichFaces
  2. RF-2815

DataScroller compatibility with table Sorting and Filtering

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Critical Critical
    • Resolution: Done
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.2.2
    • Component/s: None
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Affects:
      Documentation (Ref Guide, User Guide, etc.)
    • Similar Issues:
      Show 10 results 

      Issue Links

        Activity

        Hide
        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
        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
        Mario Baracu
        added a comment -

        Please fix this bug !

        Show
        Mario Baracu
        added a comment - Please fix this bug !
        Hide
        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
        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
        added a comment -

        Attribute "reRender" was added to DataTable.

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

        Verified at 3.2.2-SNAPSHOT

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

        docsupdated

        Show
        Svetlana Mukhina
        added a comment - docsupdated
        Hide
        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
        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
            Reporter:
            Ilya Shaikovsky
          • Votes:
            19 Vote for this issue
            Watchers:
            17 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: