aspose file tools*
The moose likes JSF and the fly likes Validation Error: Value is not valid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Validation Error: Value is not valid" Watch "Validation Error: Value is not valid" New topic
Author

Validation Error: Value is not valid

Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
Hi All
I am developing a small application in which the user can enter the student details which includes the course in which the user can select 1 or more subjects
. adding the student works fine but while editing am facing a problem("Validation Error: Value is not valid") only when i reselect the course and the subjects
update will works fine if i dont change the course ,

faces config



editStudentInfo.xhtml



StudentInfo.java




CourseInfo.java



SubjectInfo.java



UpdateStudentInfoBean
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1030
    
    5

Have you debugged the processValueChange method? Does it do what you expect it to?
Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
Thanks James Boswell for your reply ,

I am getting the correct value (selected course id) while debugging the processValueChange method.
Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
by the way the error "Validation Error: Value is not valid " is related to picklist
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1030
    
    5



This snippet means there needs to be a setSelectedSubjects(List<Integer>) method in your UpdateStudentInfoBean class. I cannot see such a method.

There is a method called setSelectedSubjectsInfo(List<Integer>). Should this be renamed to setSelectedSubjects?
Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
Thanks James Boswell for your reply,
This snippet means there needs to be a setSelectedSubjects(List<Integer>) method in your UpdateStudentInfoBean class. I cannot see such a method.

There is a method called setSelectedSubjectsInfo(List<Integer>). Should this be renamed to setSelectedSubjects?


I have renamed it , but still getting the same error
Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
All the suggestions are appreciated
Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
All the suggestions are appreciated
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validation Error: Value is not valid