This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson 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.