File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF validation errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF validation errors" Watch "JSF validation errors" New topic

JSF validation errors

karthik karl

Joined: Nov 25, 2007
Posts: 2
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

Joined: Feb 05, 2001
Posts: 17276

"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.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
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?

MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
karthik karl

Joined: Nov 25, 2007
Posts: 2
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).
I agree. Here's the link:
subject: JSF validation errors
It's not a secret anymore!