Below is my code in xhtml:
<p:row rendered="#{abcBean.xyzmethod}">
In my bean:
public boolean xyzmethod(){
String def = "ghi";
if(!def.equal("ghi"){
return false;
}
return true;
}
My requirement is, I don't want to display this row if xyzmethod returns false. But I am getting error while loading xhtml as : javax.el.PropertyNotFoundException:abcBean does not have the property 'xyzmethod'.
Am I doing anything wrong? Please help!