File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes success alert using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "success alert using javascript" Watch "success alert using javascript" New topic
Author

success alert using javascript

praneeth kumar
Greenhorn

Joined: May 10, 2007
Posts: 20
Hello everyone

I have a jsf page with forms for user details and a submit button.Everytime the submit button is clicked,the form is submitted and if the validation fails,the same page is displayed(using navigation rules in faces-config) with error messages.If the form is valid,the user is directed to home page(using navigation rules in faces-config).How can I add a javascript alert to the page to inform the user that the form has been successfully submitted?One solution is to move all the validation to the same page so that the form is not submitted till the validation is perfomed.Is there any other simple solution?

Thanks in advance!


SCJP 1.5 - 91%
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: success alert using javascript
 
It's not a secret anymore!