This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
In the jsp page i have a command button being used to launch a dialog window. This button is inside <h:form> tag.
Problem with this button is for the first time if page gets loaded and user clicks on this button, page is getting refreshed and dialog is not getting launched.
If user clicks on the button for the second time, it is performing what it is supposed to perform.