Reputation: 15
I need to write this string on JSF code :
rendered="#{person.value.equals('it's him')}"
My problem is with the '
character.
Thank's for your help.
Upvotes: 1
Views: 2293
Reputation: 8230
You can do the following:
<h:outputText value="My text with \'single quotes\' and \"double quotes\"" />
So:
rendered="#{person.value.equals('it\'s him')}"
Look at this:
<af:outputText inlineStyle="font-weight:bold;" value="#{viewControllerBundle.BEAN_ONLINE_VARIABLE_PASS_1}" id="ot22p_" rendered="#{empty pageFlowScope.sensor.payed and pageFlowScope.sensor.down eq 'false'}"/>
Upvotes: 1