[
https://jira.jboss.org/jira/browse/RF-4461?page=com.atlassian.jira.plugin...
]
Ilya Shaikovsky resolved RF-4461.
---------------------------------
Resolution: Rejected
No we could not apply this patch because then sorting will be available only on icon
itself. And this will be inacceptable for the users which need it to be available for the
whole header.
But you could solve this easily by yourself by using Event.stop(e) in your onclick event
handler for select.
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:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira