[richfaces-issues] [JBoss JIRA] Updated: (RF-7517) rich:dataTable + rich:columns -> sortBy doing nothing
Matthias Hryniszak (JIRA)
jira-events at lists.jboss.org
Tue Jul 14 03:34:29 EDT 2009
[ https://jira.jboss.org/jira/browse/RF-7517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Hryniszak updated RF-7517:
-----------------------------------
Description:
Using the following markup sorting does not work at all on columns:
<rich:dataTable id="table" value="#{localeHandler.locales}" var="row" rows="15">
<rich:columns value="#{localeHandler.columns}" var="column" index="i" sortBy="#{row[column]}" sortOrder="#{localeHandler.sortOrder[column]}" >
<f:facet name="header">
<h:outputText value="#{column}"/>
</f:facet>
<h:outputText value="#{row[column]}"/>
</rich:columns>
<f:facet name="footer">
<rich:datascroller id="scroller" for="table" page="#{localeHandler.currentPage}" />
</f:facet>
</rich:dataTable>
Whereas the localeHandler is a bean with the following properties:
- columns - List<String> containing property names (language, displayLanguage, and so on)
- locales - List<java.util.Locale> generated from Locale.getAvailableLocales()
Current result: sorting is not working
Expected result: sorting works as expected.
was:
Using the following markup sorting does not work at all on columns:
<rich:dataTable id="table" value="#{localeHandler.locales}" var="row" rows="15">
<rich:columns value="#{localeHandler.columns}" var="column" index="i" sortBy="#{row[column]}" sortOrder="#{localeHandler.sortOrder}" >
<f:facet name="header">
<h:outputText value="#{column}"/>
</f:facet>
<h:outputText value="#{row[column]}"/>
</rich:columns>
<f:facet name="footer">
<rich:datascroller id="scroller" for="table" page="#{localeHandler.currentPage}" />
</f:facet>
</rich:dataTable>
Whereas the localeHandler is a bean with the following properties:
- columns - List<String> containing property names (language, displayLanguage, and so on)
- locales - List<java.util.Locale> generated from Locale.getAvailableLocales()
Current result: sorting is not working
Expected result: sorting works as expected.
The proposed solution is not working either.
Works in 3.3.0.CR1, since 3.3.0.CR2 this feature is broken.
> rich:dataTable + rich:columns -> sortBy doing nothing
> -----------------------------------------------------
>
> Key: RF-7517
> URL: https://jira.jboss.org/jira/browse/RF-7517
> Project: RichFaces
> Issue Type: Bug
> Components: component-tables
> Affects Versions: 3.3.1
> Environment: WinXP SP3
> Reporter: Matthias Hryniszak
> Assignee: Tsikhon Kuprevich
>
> Using the following markup sorting does not work at all on columns:
> <rich:dataTable id="table" value="#{localeHandler.locales}" var="row" rows="15">
> <rich:columns value="#{localeHandler.columns}" var="column" index="i" sortBy="#{row[column]}" sortOrder="#{localeHandler.sortOrder[column]}" >
> <f:facet name="header">
> <h:outputText value="#{column}"/>
> </f:facet>
> <h:outputText value="#{row[column]}"/>
> </rich:columns>
> <f:facet name="footer">
> <rich:datascroller id="scroller" for="table" page="#{localeHandler.currentPage}" />
> </f:facet>
> </rich:dataTable>
> Whereas the localeHandler is a bean with the following properties:
> - columns - List<String> containing property names (language, displayLanguage, and so on)
> - locales - List<java.util.Locale> generated from Locale.getAvailableLocales()
> Current result: sorting is not working
> Expected result: sorting works as expected.
--
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