Filtering with rich:column in a composition doesn't work properly.
------------------------------------------------------------------
Key: RF-7204
URL:
https://jira.jboss.org/jira/browse/RF-7204
Project: RichFaces
Issue Type: Bug
Components: component
Affects Versions: 3.3.2.CR1
Environment: IE6, IE7, IE8, FF2, FF3.0.10, Safari 3.1, Opera 9.62, Chrome
1.0.154.43(3.3.2-snapshot; facelets, jsf 1.2_12)
Reporter: Mikhail Vitenkov
Assignee: Nick Belaevski
#1. Create composition for column representation(column.xhtml) in following way:
<ui:composition>
<rich:column filterBy="#{obj[filterBy]}"
filterEvent="onkeyup">
<f:facet name="header">
<t:outputText value="#{title}" />
</f:facet>
<ui:insert/>
</rich:column>
</ui:composition>
#2. Define this composition in custom taglib:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE facelet-taglib PUBLIC
"-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
"facelet-taglib_1_0.dtd">
<facelet-taglib>
<namespace>http://mihey.vit/tags</namespace>
<tag>
<tag-name>column</tag-name>
<source>column.xhtml</source>
</tag>
</facelet-taglib>
#3. Register taglib in web.xml:
<context-param>
<param-name>facelets.LIBRARIES</param-name>
<param-value>
/WEB-INF/myTags.taglib.xml
</param-value>
</context-param>
#4. Add custom tag in a page:
<h:form>
<rich:dataTable label="Table" value="#{custom.testList}"
rows="10"
var="obj">
<my:column title="FIRST" filterBy="first">
<h:outputText value="#{obj.first}" />
</my:column>
<my:column title="SECOND" filterBy="second">
<h:outputText value="#{obj.second}" />
</my:column>
<my:column title="THIRD" filterBy="third">
<h:outputText value="#{obj.third}" />
</my:column>
<my:column title="LAST" filterBy="last">
<h:outputText value="#{obj.last}" />
</my:column>
</rich:dataTable>
</h:form>
#5. Navigate to the page and try to filter the 1st column by entering something in filter
input.
#6. Verify filtering.
Actual behavior:
Filtering occurs only for the last column in dataTable.
--
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