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 Banica


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

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to