This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

success alert using javascript

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic