• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Submitting a form from a javascript method gives javax.faces.el.EvaluationException

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

I need to validate a form through JavaScript method and then the form should be submitted. I've tried to do this other similar ways, but I encounter a javascript error.
So finally I'm convinced with the JavaScript methods which validates and does a call to the script in the other server. But the problem is when I'm submitting the form from JavaScript method, I get a

Please help me...!!!
Below is the my code:

buy.jsp:



buy.js:



Thanks in advance...


 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
first: Your supposed to use a validator each in a backing bean method to colect data for each UIInput object.
You do not use javascript it devoids the point.

http://en.wikipedia.org/wiki/JavaServer_Faces
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic