I have 2 <h:panelGroup
for conditional text display. When I run with id empty than this condition is executed fine #{empty personBean.person.id}
and I see text in it. If I put <h2>#{buttonText}</h2>
in panels than I see buttonText properly displayed in h2 tag.
Now Problem:
In below code if I put <h2>#{buttonText}</h2>
at the end like below than I always get value Update member due to this I can not use value of buttonText
anywhere in the page below. Someone tell me what to do?
<h:panelGroup rendered="#{empty personBean.person.id}">
<h1>Add Information</h1>
<i>Use the form below to add your information.</i>
<ui:param name="buttonText" value="Add member" />
</h:panelGroup>
<h:panelGroup rendered="#{not empty personBean.person.id}">
<h1>Update Information</h1>
<i>Use the form below to edit your information.</i>
<ui:param name="buttonText" value="Update member" />
</h:panelGroup>
<h2>#{buttonText}</h2>
I am unable to use <ui:param
like I use <c:set var="buttonText" value="Add member" />
JSTL set variable.