This is the listbox in my jsfpage:
<h:selectOneListbox id="stud" value="#{inschrijven.student.studentnr}">
<f:selectItems value="#{inschrijven.gezochteStudenten}" var="st" itemLabel="#{st.studentnr}" itemValue="#{st.studentnr}"/></h:selectOneListbox>
in my managedBean Inschrijven.java:
private Student student;
private List<Student> gezochteStudenten;
in my constructor I make the student attribute:
student = new Student();
so first I search students => gezochteStudenten this works, I debugged and it worked like it should...
But when I click the button "schrijfin" it gives an exception and it won't even go to my method: j_idt9:stud: Validation Error: Value is not valid
any idea how this is possible and how i can fix this?
the property studentnr is at both sides of the type "String" so this won't be the problem...