Hen
Hen

Reputation: 253

Function 'PF' not found?

i am using JSF 2 and Primefaces 5 and i am trying to show p:dialog when the object "client" is null (not instantiated) like below :

<p:commandLink update=":form:connecterPanel" 
   oncomplete="#{empty loginBean.client ? PF('connectDialog').show():''}" title="add to panel">
   <h:outputText styleClass="ui-icon ui-icon-cart" style="margin:0 auto;" />
</p:commandLink>

But i am getting the error Function 'PF' not found

Upvotes: 0

Views: 1087

Answers (1)

Hen
Hen

Reputation: 253

I solved it using this :

oncomplete="if(#{empty loginBean.client }){PF('connectDialog').show()}"

Upvotes: 1

Related Questions