I would like to create a usual dialog window:
- The user clicks a link or button
- The screen becomes blackish, a new window appears (a
DIV
is created) - By using Ajax, the
DIV
is populated with aform.xhtml
- By clicking on a cross in the
DIV
, theDIV
is removed and the blackish screen too.
I know how to do some of this stuff with usual CSS/Jquery. However, I am lost on how the JSF link/button should call the Jquery code to create the dialog (because I am supposing that JSF cannot do it alone) and make the Ajax call to get the form.
I am not using auxiliary libraries.