Hi List,
I have a basic question:
What I would like to do, is write a bean method that returns boolean
and use this return value to render (or not) a JSF component.
So my page has smth like: <h:... rendered= "#{bean.showThisOne}" />
& with the bean having a "public boolean showThisOne(){....}"
The stack trace complains: "showThisOne" is not a property. (Which
tells me it will not accept a method there (?))
--> The question: can you, for such cases, use a method this way, or
do I have to make boolean property in my bean for this, and provide
setters & getters as well for it? Thus coding 2 extra things I will
never use - so it seems at least.
(Kinda like is done with the "action" attribute but then for
rendering in this case)
Thanks,
Philippe