0

I need to display a JQuery confirm box for a form, but I only want the form to display once the form is successfully validated from the Faces Life Cycle. I am using JSF1.2 (legacy project which needs a minor validation tweak).

I used this post: How to implement JQuery confirm dialog with JSF but i believe this will only work with JSF 2 onwards?

Anyone know how to achieve this in JSF1.2?

Appreciate any help

Many thanks

Steve W
  • 97
  • 7
  • Are you basically asking how to conditionally render a HTML ` – BalusC Jul 07 '20 at 13:20
  • @BalusC - Thanks for the comment. I'm just wanting a JQuery/JS dialog box which says "Are you sure you want to submit this?" once the form is validated successfully. User then chooses Yes or No and it gets submitted or doesn't. (As an addition, I only want to show the dialog box if a certain value if in one of the form fields, but I am OK with figuring that part out) – Steve W Jul 07 '20 at 14:49
  • JSF doesn't care about *which* JS code exactly you're going to execute. Just conditionally render that ` – BalusC Jul 07 '20 at 15:22

0 Answers0