[richfaces-issues] [JBoss JIRA] Resolved: (RF-2811) a4j:repeat doesn't support java.util.Set
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Thu Feb 5 20:26:45 EST 2009
[ https://jira.jboss.org/jira/browse/RF-2811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Belaevski resolved RF-2811.
--------------------------------
Fix Version/s: (was: Future)
Resolution: Won't Fix
Assignee: Tsikhon Kuprevich (was: Nick Belaevski)
Set doesn't guarantee iteration order, so the issue won't be fixed. If you are pretty sure you need sets, use this as workaround: new ArrayList(set)
> a4j:repeat doesn't support java.util.Set
> ----------------------------------------
>
> Key: RF-2811
> URL: https://jira.jboss.org/jira/browse/RF-2811
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.0
> Environment: JDK 1.5
> Reporter: Sergey Halipov
> Assignee: Tsikhon Kuprevich
>
> a4j:repeat interprets Sets as simple type not a collection. Example bellow doesn't work correctly. But it would work if we replaced HashSet with ArrayList.
> JSP code:
> <a4j:repeat value="#{bean.testLists}" var="list" id="repeat">
> <h:outputText value="#{list}"></h:outputText><br />
> </a4j:repeat>
> Java bean:
> public class Bean {
> private Collection<String> testLists = new HashSet<String>();
> public Bean() {
> for (int i = 0; i < 30; i++) {
> testLists.add(new Integer(i).toString());
> }
> }
> public Collection<String> getTestLists() {
> return testLists;
> }
> public void setTestLists(Collection<String> testLists) {
> this.testLists = testLists;
> }
> }
--
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