Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
satya anvesh
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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...


 
Samuel March
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!