1.
As per your faces-config, on the save action (which gives 'index' as the result) it goes to /pages/inputname.jsp, not to success.jsp.
I am terribly sorry that was a copy paste mistake. It should be success.jsp
2.
You are not calling this method anywhere.
(You commented out the line where you specify the form action as this method.)
Where are you stuck? Did you get the confirm dialog? What happens when you press the OK/Cancel button?
I commented out since it doesn't set the action.
Yes, i got the confirm dialog but when i click on OK it submits the form but doesn't call the navigate method. Cancel button works fine.
I am stuck after clicking on OK button in the confirm dialog. I expected clicking OK should take me to navigate method (in bean class) but unfortunately it didn't happen from javascript submit.
//document.forms[0].action="#{Employee.navigate}";
or
I don't know how to submit my page from javascript (equivalent to JSF action submit, redirecting to the specified method in the bean class).
3.
Are you populating the validate field to 'false' from the backing bean?
Yes, even javascript alert returns false when validation fails.
4. Ajax.
I have shown you with a simple example. In the actual application it has 10 input fields with validation hitting the db for every field. hence i considered ajax might slowdown.
Since app. is cross browser, client has suggested to use minimal js.
Hope i have answered your questions.
Any help on this would be greatly helpful.
Thanks,
Ganesh