This content has been marked as final. Show 2 replies
Doesnt JSF just invoke this method one time and then create the datatable?
No, not necessarily. You can't predict how often your method will be called, so in general, don't do a lot of stuff in getters.
I'd probably use a @DataModel and have your method populate it with a factory. I think the docs show how to do this.
This creates a request-scoped variable that jsf can call as often as it wants, but your factory method is only called once.
Yes, thx a lot, this works!