Je n'arrive pas a faire ce binding sur un selectOneMenu
value="#{eleve_adaptateur.notes[0].devoir.notation}"
il me met
error setting property notation in bean of type null
ma classe eleve_adapteur
package gesteco.adaptateurs;
import ecole.couchedao.pojo.POJODevoir;
import ecole.couchedao.pojo.POJOEleve;
import ecole.couchedao.pojo.POJONote;
import java.util.List;
import javax.faces.context.FacesContext;
public class EleveAdaptateur {
private POJOEleve eleve;
private POJONote [] notes;
private double moyenne=0.0;
private Coefficient [] coefficients;
private Notation [] notations;
public EleveAdaptateur() {
}
public void setEleve(POJOEleve eleve) {
this.eleve = eleve;
}
public POJOEleve getEleve() {
return eleve;
}
public void setMoyenne(double moyenne) {
this.moyenne = moyenne;
}
public double getMoyenne() {
return moyenne;
}
public void setNotes(POJONote[] notes) {
this.notes = notes;
}
public POJONote[] getNotes() {
return notes;
}
public void setCoefficients(Coefficient[] coefficients) {
this.coefficients = coefficients;
}
public Coefficient[] getCoefficients() {
return coefficients;
}
public void setNotations(Notation[] notations) {
this.notations = notations;
}
public Notation[] getNotations() {
return notations;
}
}
Partager