Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF validation errors

 
karthik karl
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below is the problem statement:

I have a page which has 5 radio buttons and 5 different types of Submit buttons.
User clicks on a radio and presses one of the Submit buttons(say CS), then user should be navigated to a different page displaying the details of the selected id(on the radio) like persons name,city etc...

Instead the page re-displays saying "Validation error:Value is not valid" (at the top of the page).

Error thrown on RAD IDE is as below:

"9/11/07 07:22:23:469 GMT] 00000046 jsf I com.sun.faces.context.FacesContextImpl addMessage Adding Message[sourceId=NONE,summary=Validation error:Value is not valid.)"


Thanks in advance.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"karthik kk",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with display names get deleted.
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats the default error message that JSF throws when it actually should say something like "Hey, I was expecting a String but you passed in a integer"

What field is your radio button mapped to? Boolean or String or Int?
 
karthik karl
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.

My radio button is mapped to a String and no where in the code i do some invalid conversions(like trying to use it has a int).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic