I think you also have to use the method with braces, when you want to use a method returning a boolean value, but don't have a matching property defined in the bean.
I had that situation today.
My xhtml page has a <h:panelGroup ...>
with the rendered="#{bean.isLoggedIn}"
attribute. The isLoggedIn
method, calls the method of the boundary, so the bean does not have the matching property private boolean isLoggedIn
.
I got a exception because of the missing property.
After adding the braces to the rendered attribute making it to rendered="#{bean.isLoggedIn()}"
it's working correctly.
Anyway. The method got removed by now, because my bean should not do business logic stuff :D