[Debutant] erreur InputText
salut à tous , j ai un projet en JSF et JDBC , j ai fais une page jsf pour récupérer des champs text dans des champs bean ,mais une erreur se régénère voici le code :
Code:
1 2 3 4 5 6 7
|
// page: add_user.jsp
<h:form>
<h:outputText style="color: red" value="Nom: " /><br>
<h:inputText value="#{user.nom}" /><br>
</h:form> |
et le code du bean:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
public class user {
private String nom="bill";
public user(String n)
{
setNom(n);
}
public String getNom() {
return nom;
}
public void setNom(String nom) {
this.nom = nom;
}
}
//et voici l'erreur régénéré par le serveur!!
An Error Occurred:
Exception while calling encodeEnd on component : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /add_user.jsp][Class: javax.faces.component.html.HtmlForm,Id: j_id_jsp_1019990543_1][Class: javax.faces.component.html.HtmlInputText,Id: j_id_jsp_1019990543_3]}
Caused by:
java.lang.InstantiationException - user |
si vous avez une idée sur la source de cet erreur n'hésiter pas à m'informer ;)
et merci en avance