This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF validation errors" Watch "JSF validation errors" New topic
Author

JSF validation errors

karthik karl
Greenhorn

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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

"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 - Two Laptop Bag - Tube Organizer
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
Greenhorn

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: http://aspose.com/file-tools
 
subject: JSF validation errors
 
Similar Threads
Chaging the layout (pageDirection/lineDirection) of the HtmlSelectOneRadio
h:messages problem
success alert using javascript
URL based on radio button selected
validation in radio buttons