I have this backing bean:
@ManagedBean(name="testController")
public class TestController {
private String foo = "fooTest";
private List<A> alist;
public A fetchAlist(int index) {
alist = ListInflater.get(alist, A.class, index); //only used for incrementing list
return alist.get(index);
}
public String getFoo() {
return foo;
}
public void setFoo(String foo) {
this.foo = foo;
}
}
I'd like to invoke a property from class A by accessing fetchAlist(x) as propery in the page like this:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
<h:head><title>Test</title></h:head>
<h:body>
<h:form>
Test List
<p:inputText value="#{testController.fetchAlist(2).aparam}" /><br /><br />
</h:form>
</h:body>
</html>
Unfortunately that doesn't work yet, because EL understands this list as property but it isn't a property but a method. Is there any possibility to achieve such an invocation?
[UPDATE]
I figured out that all this works with h:inputText, so maybe this is a PrimeFaces bug?