[richfaces-issues] [JBoss JIRA] Resolved: (RF-8130) ExtendedDataTable reRender by external filter doen not reset row index

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Wed Nov 11 18:08:05 EST 2009


     [ https://jira.jboss.org/jira/browse/RF-8130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski resolved RF-8130.
--------------------------------

    Resolution: Incomplete Description
      Assignee: Nick Belaevski


I've posted request for additional information at the linked forum topic, please reply.

Also here is exactly what documentation says: "In this facet you can define your own controls for filtering which will be positioned like built-in filter controls.". This does not mean that controls inside the faces will have the same behavior. That's only about their location in browser DOM tree and on the page, not behavior.

> ExtendedDataTable reRender by external filter doen not reset row index
> ----------------------------------------------------------------------
>
>                 Key: RF-8130
>                 URL: https://jira.jboss.org/jira/browse/RF-8130
>             Project: RichFaces
>          Issue Type: Bug
>          Components: component
>    Affects Versions: 3.3.2.SR1
>         Environment: Mozilla Firefox 3.5.5, IE7
>            Reporter: Radu B
>            Assignee: Nick Belaevski
>
> Use <f:facet name="filter"> to define the filter inside the rich:column.
> The filter is rendered OK and table is reRendered, but the row indexes are not reset as in case of "filterBy" "filterEvent" attributes. 
> In the example below the external filter on column "External filter" does not reset the row index, while using <rich:column sortable="true" sortBy="#{_customer.firstname}" filterBy="#{_customer.firstname}" filterEvent="onkeyup" label="First Name"> rerenders the table and reset row index.
> In the documentation says that using <f:facet name="filter"> should behave the same as using filterBy="..." and filterEvent="onkeyup"
> Code example:
> <rich:extendedDataTable id="customerSearchListTable"
> var="_customer"
> value="#{customerSearchList.resultList}"
> sortMode="multi"
> selectionMode="single"
> width="500px" height="500px"
> rendered="#{not empty customerSearchList.resultList}">
> <rich:column label="External filter" sortable="false">
> <f:facet name="filter">
> <h:inputText immediate="true" value="#{customerSearchList.customer.lastname}" id="filterLastName"
> onclick="Event.stop(event);" styleClass="rich-filter-input" >
> <a:support id="onkeyupFName" event="onchange" reRender="customerSearchListTable"
> ignoreDupResponses="true" requestDelay="700"/>
> </h:inputText>
> </f:facet>
> <h:outputText value="#{_customer.id}"/>
> </rich:column>
> <rich:column sortable="true" sortBy="#{_customer.firstname}" filterBy="#{_customer.firstname}" filterEvent="onkeyup" label="First Name">
> <f:facet name="header">
> <h:outputText value="First Name" />
> </f:facet>
> <h:outputText value="#{_customer.firstname}"/>
> </rich:column>
> <rich:column sortable="true" sortBy="#{_customer.lastname}" filterBy="#{_customer.lastname}" filterEvent="onkeyup" label="Last Name">
> <f:facet name="header">
> <h:outputText value="Last Name" />
> </f:facet>
> <h:outputText value="#{_customer.lastname}"/>
> </rich:column>
> <rich:column sortable="false" styleClass="action" label="Action">
> <f:facet name="header">
> <h:outputText value="Action" />
> </f:facet>
> <a:commandLink value="Select" id="savecnt" reRender="primaryContactNameField"
> oncomplete="Richfaces.hideModalPanel('modalPanel')"
> title="Select customer #{_customer.id}">
> <f:setPropertyActionListener value="#{_customer}"
> target="#{companyHome.instance.primaryContact}"/>
> </a:commandLink>
> </rich:column>
> </rich:extendedDataTable> 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list