I have a form with jsf2 and primefaces that contains a submit button that managed two things: First: form validation with the update attribute and second launching a confirmation dialog box when validation succeeded and all of this are managed by:
so my problem is that when I click into the button validation: if validation don't succeeded : validation messages are displayed in the form : ok but if the validation succeeded I must click a second time to display dialog box
anyone know how to solve this problem there?
and here the method to launch the dialog
thank you in advance
Joined: Aug 08, 2012
I think that I didn't explain the probleme well,
in brief : I have this button :
in the attribute update : myfieldset correspond to the fieldset (componentprimeface) : it allow to validate all input contained in this fieldset
and "display" correspond to the dialog that I want it appear when validation is succeeded
the problem is even if validation succeded I must make a second click into this button to appear this dialog
I'm not an Icefaces expert, but in any event, I don't pop up a confirmation dialog myself (for one thing, it's just one more thing to have to click on). Instead I make the update action method add a an information message to the JSF messages object. I have a special utility class that contains the JSF-specific code, so the action method simply calls "JSFUtils.addInfoMessage("Data updated OK");"