|
Use <h:outputLabel
rendered="{#UserController.user.PQE}" for="finalLiability" Rather than <h:outputLabel
rendered="{#UserController.user.isPQE}" for="finalLiability" Stefan Maric | IT & Professional Services | BT
Global Services E: [EMAIL PROTECTED] | www.bt.com/globalservices This electronic message contains
information from British Telecommunications plc, which may be privileged or confidential. The information is intended for use only by
the individual(s) or entity named above.
If you are not the intended recipient,
be aware that any disclosure, copying, distribution or use of the contents of this information is strictly
prohibited. If you have received this electronic
message in error, please notify me by telephone or email (to the
number or email address above) immediately. Activity and use of the British
Telecommunications plc e-mail system is monitored to secure its effective operation and for other lawful
business purposes. Communications using this system will also be monitored and may be recorded to secure
effective operation and for other lawful business purposes. British Telecommunications plc.
Registered office: 81 Newgate Street
London EC1A 7AJ Registered in England no: 1800000 size=2 width="100%" align=center tabindex=-1> From:
Jeffrey Porter [mailto:[EMAIL PROTECTED] 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..? stefan.maric
- Re: IF statement..? Volker Weber
- Re: IF statement..? Mike Kienenberger
- 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
- Re: IF statement..? Martin Marinschek
- RE: IF statement..? Jeffrey Porter
- Re: IF statement..? Simon Kitching

