x
login about faq

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.

more ▼

asked Jan 16 at 08:50 AM

DINESH.LOMTE\'s gravatar image

DINESH.LOMTE
0

(comments are locked)
10|600 characters needed characters left  moderation talk

1 answer:

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.

more ▼

answered Jan 18 at 10:10 AM

DINESH.LOMTE\'s gravatar image

DINESH.LOMTE
0

(comments are locked)
10|600 characters needed characters left  moderation talk
Your answer
osqa.question.ask.tags.preview.show

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5

Asked: Jan 16 at 08:50 AM

Seen: 114 times

Last Updated: Jan 16 at 08:50 AM

powered by Qato - Enterprise Q&A