[richfaces-issues] [JBoss JIRA] Created: (RF-4461) a click on a custom filter facet on rich:dataTable causes a sorting event

Alexei Sadovnikov (JIRA) jira-events at lists.jboss.org
Fri Sep 12 08:41:21 EDT 2008


a click on a custom filter facet on rich:dataTable causes a sorting event
-------------------------------------------------------------------------

                 Key: RF-4461
                 URL: https://jira.jboss.org/jira/browse/RF-4461
             Project: RichFaces
          Issue Type: Patch
    Affects Versions: 3.2.2
            Reporter: Alexei Sadovnikov


If a dataTable contains a column where sorting and filtering are enabled and the custom filter component is a <h:selectMenu> then a click on the select causes sorting on that column. This happens because the sorting event is produced by <th>. A possible solution is to put the onclick into the header's <div>, i.e. in the org.richfaces.renderkit.AbstractTableRenderer$RichHeaderEncodeStrategy#encodeBegin() move the code wich add the event listener after the line:
writer.startElement(HTML.DIV_ELEM, column);

Attached file contains the proposed patch.

-- 
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