Primefaces xhtml中的呈现属性
下面是我在xhtml中的代码:Primefaces xhtml中的呈现属性,primefaces,xhtml,rendered-attribute,Primefaces,Xhtml,Rendered Attribute,下面是我在xhtml中的代码: <p:row rendered="#{abcBean.xyzmethod}"> 我的要求是,如果xyzmethod返回false,我不想显示此行。但我在加载xhtml时出错:javax.el.PropertyNotFoundException:abcBean没有属性“xyzmethod” 我做错什么了吗?请帮忙 它应该是{abcBean.xyzmethod},因为它是一个方法而不是一个属性。从未使用过primefaces,但我认为它应该是{abcBe
<p:row rendered="#{abcBean.xyzmethod}">
我的要求是,如果xyzmethod返回false,我不想显示此行。但我在加载xhtml时出错:javax.el.PropertyNotFoundException:abcBean没有属性“xyzmethod”
我做错什么了吗?请帮忙 它应该是{abcBean.xyzmethod},因为它是一个方法而不是一个属性。从未使用过primefaces,但我认为它应该是{abcBean.xyzmethod},因为它是一个方法而不是属性。啊!简单的编码错误。非常感谢不客气!我将继续添加我的评论作为回答。它与PF无关,而是JSF
public boolean xyzmethod(){
String def = "ghi";
if(!def.equal("ghi"){
return false;
}
return true;
}