[richfaces-issues] [JBoss JIRA] (RF-12557) RichFaces 4.2: sorting doesn't work when rich:columnGroup occurs
Bojan Antonovic (JIRA)
jira-events at lists.jboss.org
Mon Oct 29 08:12:01 EDT 2012
[ https://issues.jboss.org/browse/RF-12557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729744#comment-12729744 ]
Bojan Antonovic commented on RF-12557:
--------------------------------------
Revalidated (privatly with) with:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
<h:head>
<title>my test</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control"
content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
</h:head>
<h:body>
<h:form>
<h1>facet inside column:</h1>
<rich:dataTable value="#{listBean}" var="x" id="table1">
<rich:column sortBy="#{x}"
sortOrder="#{sortingHelper.getSortingOrder('table1_x')}">
<f:facet name="header">
<h:outputText value="my values" />
<a4j:commandLink value="↕" render="table1"
action="#{sortingHelper.toggleSortingOrder('table1_x')}" />
</f:facet>
#{x}
</rich:column>
</rich:dataTable>
<h1>facet outside column:</h1>
<rich:dataTable value="#{listBean}" var="x" id="table2">
<f:facet name="header">
<rich:column>
my values
<a4j:commandLink value="↕" render="table2"
action="#{sortingHelper.toggleSortingOrder('table2_x')}" />
</rich:column>
</f:facet>
<rich:column sortBy="#{x}"
sortOrder="#{sortingHelper.getSortingOrder('table2_x')}">
#{x}
</rich:column>
</rich:dataTable>
<h1>facet outside columngroup (sortable; not refreshing):</h1>
<rich:dataTable value="#{listBean}" var="x" id="table3">
<f:facet name="header">
<rich:columnGroup>
<rich:column>
my values
<a4j:commandLink value="↕" render="table3"
action="#{sortingHelper.toggleSortingOrder('table3_x')}" />
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:columnGroup>
<rich:column sortBy="#{x}"
sortOrder="#{sortingHelper.getSortingOrder('table3_x')}">
#{x}
</rich:column>
</rich:columnGroup>
</rich:dataTable>
<h1>facet outside columngroup (no sorting):</h1>
<rich:dataTable value="#{listBean}" var="x" id="table4">
<f:facet name="header">
<rich:columnGroup>
<rich:column>
my values
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:columnGroup>
<rich:column>
#{x}
</rich:column>
</rich:columnGroup>
</rich:dataTable>
</h:form>
</h:body>
</html>
and
<managed-bean>
<managed-bean-name>listBean</managed-bean-name>
<managed-bean-class>java.util.ArrayList</managed-bean-class>
<managed-bean-scope>none</managed-bean-scope>
<list-entries>
<value>one</value>
<value>two</value>
<value>three</value>
<value>for</value>
</list-entries>
</managed-bean>
> RichFaces 4.2: sorting doesn't work when rich:columnGroup occurs
> ----------------------------------------------------------------
>
> Key: RF-12557
> URL: https://issues.jboss.org/browse/RF-12557
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.2.3.Final
> Reporter: Bojan Antonovic
> Priority: Critical
> Fix For: 5-Tracking
>
>
> See forum reference. The action of a4j:commandLink is called, but the repainting doesn't work.
> Or think of making the example RichFaces Showcase/Data Iteration/rich:dataTabe sortable by meals, hotels and transport for at least the upper partial table.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list