I have a page displaying some profile, so it's URL ../faces/savedProfile.xhtml?profileId=1234
.
On that page I have p:pane containing a few p:commandLink components, something like this:
<p:panel rendered="#{profileController.canViewProfile}">
...
<p:commandLink
id="duplicateLink"
value="Duplicate"
action="#{profileController.duplicateProfile}"/>
...
</p:panel>
It works. Now I want to add another rendering condition:
<p:panel rendered="#{profileController.canViewProfile
and param['profileId'] != null}">
...
<p:commandLink
id="duplicateLink"
value="Duplicate"
action="#{profileController.duplicateProfile}"/>
...
</p:panel>
The p:commandLink is displayed, but it is not active. It seems that action method is not being invoked on click. Why would that additional rendering condition kill the commandLink?