-
1. Re: Perform validation, call modal, then submit
abafna.bafna.amit.gmail.com Dec 10, 2008 7:56 PM (in response to chris.simons)Modal panel has a tag 'showWhenRendered' and it can be evaluated as EL expression. With you click commandButton, you can submit the form for validation and reRender the modal panel. 'showWhenRendered' should be initially evaluated to false from a backing bean property, which should later be updated to true after all the validations succeed.
Cheers!!!
Amit
-
2. Re: Perform validation, call modal, then submit
chris.simons Dec 10, 2008 7:58 PM (in response to chris.simons)Thanks for the quick reply, Amit.
That sounds like one avenue...I was hoping to avoid the whole backing bean routine, but this is a sound option.
Thanks; I'll reply if I get it to work.
-
3. Re: Perform validation, call modal, then submit
chris.simons Dec 11, 2008 4:56 PM (in response to chris.simons)Amit,
I actually don't see how this is accomplished using a backing bean. Wouldn't I have to check facesContext for validation errors and then set the boolean to true/false depending on the outcome?
Now, if I could just set showWhenRendered="#{invalid}", then that would be awesome.
Also, if my confirmation modal were to be generic, I would need to know which backing bean to check for the valid/invalid boolean.
Thoughts?
-
4. Re: Perform validation, call modal, then submit
valatharv Feb 6, 2009 7:20 PM (in response to chris.simons)Hi Amit/ Chris,
I am also facing exactly the same issue, it will be very helpful if you can provide any code. Stuck with this....:(
http://www.seamframework.org/Community/StrangeBehaviourForXhtmlWhenUsingModal