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

Reply via email to