]
Konstantin Mishin reassigned RF-4461:
-------------------------------------
Assignee: Ilya Shaikovsky
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
Assignee: Ilya Shaikovsky
Attachments: AbstractTableRenderer.java
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: