[richfaces-issues] [JBoss JIRA] Created: (RF-2811) a4j:repeat doesn't support java.util.Set

Sergey Halipov (JIRA) jira-events at lists.jboss.org
Thu Mar 27 16:44:40 EDT 2008


a4j:repeat doesn't support java.util.Set
----------------------------------------

                 Key: RF-2811
                 URL: http://jira.jboss.com/jira/browse/RF-2811
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.2.0
         Environment: JDK 1.5
            Reporter: Sergey Halipov


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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list