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;
}
Code: Select all
<p:carousel var="foo" value="#{bar.foos}">#{foo}</p:carousel>
Code: Select all
<p:carousel var="foo" value="#{bar.foos}"><h:outputText value="#{foo}"/></p:carousel>
Has anybody else experienced this problem? I would appreciate an explanation as to why this happens.
Greets,
Ben