|
What am I missing here?
<h:outputLabel rendered="{#UserController.user.isPQE}" for="finalLiability" value="#{my_properties['NCM_label_finalLiability']}" />
&&
<h:selectOneRadio rendered="{#UserController.user.isPQE}" required="true" disabledClass="bodyheading" enabledClass="bodyheading" id="finalLiability" value="#{nonConformingMaterial.finalLiability}" immediate="true" layout="lineDirection" styleClass="selectOneRadio">
<f:selectItem itemValue="0" itemLabel="#{ebusiness_properties['NCM_label_finalLiability_0']}" /> <f:selectItem itemValue="1" itemLabel="#{ebusiness_properties['NCM_label_finalLiability_1']}" /> </h:selectOneRadio>
Code…
public class User implements Serializable { ………REMOVED OTHER CODE………….
public boolean isPQE() { boolean x = Arrays.asList(roles).contains(User.PQE_ROLE); return x; } }
When ever I debug I never hit the method isPQE(). Also neither of the above JSF tags get rendered, no matter what is returned by the method.
I can get other values from the user bean.
e.g. this works… <h:outputText value="#{UserController.user.firstName}" />
-----Original Message-----
|
- RE: IF statement..? Jeffrey Porter
- Re: IF statement..? Volker Weber
- Re: IF statement..? Martin Marinschek
- Re: IF statement..? Volker Weber
- Re: IF statement..? Mike Kienenberger
- RE: IF statement..? stefan.maric
- RE: IF statement..? Jeffrey Porter
- Re: IF statement..? Martin Marinschek
- RE: IF statement..? CONNER, BRENDAN \(SBCSI\)
- Re: IF statement..? Mike Kienenberger
- Re: IF statement..? Martin Marinschek

