Try <h:commandLink disabled="#{foo.bar}"/>

getters for boolean properties are supposed to be named 'isProperty()'
for all other objects or primitive types it's 'getProperty()'.

regards
christoph

On Thu, Mar 20, 2008 at 6:50 PM, h b <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I have the following backing bean:
> //not actual code
> public class Foo { private boolean isBar; public Foo() {}; public boolean
> isBar() {return this.isBar;} public void setBar(boolean isBar) {
> this.isBar = isBar;} }
>
> in my jsf I the following:
> <h:commandLink disabled="#{foo.isBar}"/>
>
> It is complaining because it can't find the property isBar...I have to
> actually change my foo class to getIsBar() and setIsBar() then it work.
>
> I'm new to JSF & MyFaces...am I missing something?
>
> Thanks
>

Reply via email to