JSF/IceFaces Conditional Rendering
问题 I am using Icefaces to conditonally render a component but it cant pick up the boolean: BeanCode: public boolean isEmpty(){ return true; } public int getCount(){ if (isEmpty()){ return 0; } return 1; } IceFaces <ice:panelGroup rendered="#{coverage.empty}"> //this doesnt work <ice:panelGroup rendered="#{coverage.count==0}"> //this does work Error message: Error Parsing: #{coverage.empty} Why is IceFaces not recognising the boolean? 回答1: As you stated, empty is a reserved word in Expression