aspose file tools
The moose likes JSF and the fly likes Error With Simple Converter Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Error With Simple Converter" Watch "Error With Simple Converter" New topic
Author

Error With Simple Converter

vijay saraf
Ranch Hand

Joined: Jan 08, 2005
Posts: 141
Hello All,

I am new to JSF and stucked at Simple Converter.......
I am unable to understand why i am getting java.lang.IllegalArgumentException: argument type mismatch Error
here is the code

JSP:
..........
..........

..........
..........

Bean:
..........
..........

..........
..........

however its working when i do not enter any value or when i enter alphabates
it shows errors(Validation Error: Value is required. or Conversion error occurred. respectively )as expected.
but when i enter any Numeric value then i get error as java.lang.IllegalArgumentException: argument type mismatch.
please help me to rectify the problem.
thanks.


Thanks
Vijay Saraf.
vijay saraf
Ranch Hand

Joined: Jan 08, 2005
Posts: 141
Ya i have got.....what was wrong.....
just alter the code as
<f:converter converterId="javax.faces.Integer"/>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error With Simple Converter
 
Similar Threads
prevent auto submit
java.lang.VerifyError:
convertDateTime
When Validation Error I Lose My Bean Value-Struts 2
JSF Is it really requirerd