|
I have a requirement where in I need to open a popup window on a button click. If there are some validation errors then user should not be displayed with the popup window. How to achieve this using rich popuppanel.
(comments are locked)
|
|
I finally found the solution for this. <a4j:commandButton id="createSegment" value="Create Segment" action="#{quoteAction.createSegment}" execute="segmentPanel" render="segments" oncomplete="if (#{facesContext.maximumSeverity==null}) {#{rich:component('segmentPanel')}.hide();}"/> facesContext.maximumSeverity component can be used to validate if popup has error message or not before closing OR opening.
(comments are locked)
|