p:carousel render problem

UI Components for JSF
Post Reply
User avatar
Ben Utzer
Posts: 61
Joined: 10 Feb 2010, 12:05

03 Feb 2011, 11:12

Hi,

Given the following bean method:

Code: Select all

private List<String> foos = new ArrayList<String>();

	public List<String> getFoos() {
		if(values.isEmpty()) {
			values.add("yes");
			values.add("no");
			values.add("perhaps");
		}
		return values;
	}
This works:

Code: Select all

<p:carousel var="foo" value="#{bar.foos}">#{foo}</p:carousel>
while this only renders the first list entry:

Code: Select all

<p:carousel var="foo" value="#{bar.foos}"><h:outputText value="#{foo}"/></p:carousel>
I'm using Primefaces 1.1 + Richfaces.

Has anybody else experienced this problem? I would appreciate an explanation as to why this happens.

Greets,

Ben

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 66 guests