myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Basham <bbas...@stillsecure.com>
Subject Re: getIsDisabled/setIsDisabled
Date Thu, 20 Mar 2008 18:04:12 GMT
EL uses the JavaBeans standard.  So, the disable EL attribute should be 
"#{foo.bar}" and EL will use the isBar():boolean method to retrieve the 
value.  You must not include the "is" portion of the method name.

Regards,
Bryan

h b 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


Mime
View raw message