Skip to content Skip to sidebar Skip to footer

Controlling Primefaces Dialog From Javascript

I try to control primefaces display show and hide from java script on bean validation failure, but its not working. As suggested in forums have tried with widgetVar name of the co

Solution 1:

From PrimeFaces 5.0 you must call any component with the PF function (i.e. PF('widgtVar') instead of widgetVar which has already been deprecated in 4.0). Source here.

Replacing mglasspane.hide(); by PF('mglasspane').hide(); should work.


More information about the PF function here


Post a Comment for "Controlling Primefaces Dialog From Javascript"