bonjour

j'ai un probléme avec J2EE utilisé par JSF et je souhaiterai que quelqu'un peut m'aider , le probéme est le suivant quand je click sur le boutton créer compte rien ne se passe ni redirection vers la page validation ni redirection dans la page "erreur remplissez vos champs" svp aider moi.

c'est le code de la page d'inscription:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
 
 
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
 
<f:view>
    <h:form>
 
	</h:form><h1> <CENTER>Site d'inscription</CENTER> <img src="images.gif"></h1>
	<h:form>
	Identifiants et paramêtre de connexion :<br> 
 
		<h:panelGrid border="1" columns="2" >
	<h:outputText value="votre pseudo"></h:outputText>
	<h:inputText value="#{BeanController.pseudo}"required="true"  > </h:inputText> 
	<h:outputText value="Votre E-mail: "></h:outputText>
	<h:inputText  value="#{BeanController.email}" required="true">
<f:validator validatorId="checkvalidemail" />
</h:inputText>   
	<h:outputText value="Votre mot de passe : "></h:outputText>
	<h:inputSecret id="mdp" value="#{BeanController.mdp}" required="true"></h:inputSecret> 
	<h:outputText value="Confirmer votre mot de passe: "></h:outputText>
	<h:inputSecret value="#{BeanController.mdp.value}" required="true"></h:inputSecret>
    <h:outputText value="Votre Langue : " />
	<h:form>
<h:selectOneMenu id="som" value="TableBean.perInfoAll" title="select any one in this menu">
  <f:selectItem id="si1" itemLabel="Francais" itemValue="11" />
  <f:selectItem id="si2" itemLabel="anglais" itemValue="22" />
  <f:selectItem id="si3" itemLabel="Espagnel" itemValue="33" />
  <f:selectItem id="si4" itemLabel="Italien" itemValue="44" />
  <f:selectItem id="si5" itemLabel="Allemand" itemValue="55" />
  </h:selectOneMenu>
   </h:form>
 
	</h:panelGrid>
    <br>
    </h:form>
    Informations personnelles <br>
    <h:form>
	Tu es : <h:selectOneRadio id="sor" value="TableBean.perInfoAll" title="Select any one of the choice" layout="pageDirection" border="1">
<f:selectItem id="si1" itemLabel="Féminin" itemValue="66" />
<f:selectItem id="si2" itemLabel="Masculin" itemValue="77" />
</h:selectOneRadio>
</h:form>
	<h:form>
	<h:panelGrid border="1" columns="2" > 
	 <h:outputText value="Votre nom : "></h:outputText>
	  <h:inputText id="nom" value="#{BeanController.nom}" required="true"></h:inputText> 
	  <h:outputText value="Votre prénom : "></h:outputText>
	  <h:inputText id="prénom" size="10" value="#{BeanController.prénom}" required="true"> </h:inputText> 
 
       <h:outputText value="Date de naissance "></h:outputText>
       <h:inputText size="2" id="date" value="#{BeanController.date}" style="width: 153px" converterMessage="la date indiqué doit être au format jj/mm/aaaa" requiredMessage="vous devez renseigner ce message" required="true"> </h:inputText>
  	   <h:outputText value="votre pays "></h:outputText>
  	   <h:form>
<h:selectOneMenu id="pays" value="TableBean.perInfoAll" title="select any one in this menu">
  <f:selectItem id="si1" itemLabel="France" itemValue="11" />
  <f:selectItem id="si2" itemLabel="Italy" itemValue="22" />
  <f:selectItem id="si3" itemLabel="Espagne" itemValue="33" />
  <f:selectItem id="si4" itemLabel="tunisia" itemValue="44" />
  <f:selectItem id="si5" itemLabel="Dubai" itemValue="55" />
  </h:selectOneMenu>
   </h:form>
  	  </h:panelGrid>
  	  </h:form>
  	    Email d'information sur l'actualité des produits et services d'Ericsson
       Je souhaite être informé par email ou sur le site Ericsson.com des offres promotionnelles de nos partenaires, qui
       correspondent à mon profil  . <br>
     <h:form>
            <h:selectBooleanCheckbox id="checkbox" value="true"
 title="click it to select or deselect"/>
            <h:outputText value="OK"/>
            </h:form>
 
<br><h:commandButton value=" créer mon compte" action="#{BeanController.valider}" ></h:commandButton>
</f:view>
ensuite la classe de contrôle :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
 
private String pays;
	private String pseudo;
	private String Langue;
    private String email ="user@host";
	private String mdp =" ";
	private String date;
 
	public String valider(){
		if (this.nom.isEmpty()|| this.prénom.isEmpty()|| this.pays.isEmpty()|| this.pseudo.isEmpty()|| this.Langue.isEmpty()|| this.email.isEmpty()||this. mdp.isEmpty()||this.date.isEmpty()){
			return "invalide";
		}
 
		return"valide";
	}
 
	public String getNom() {
		return nom;
	}
 
	public void setNom(String nom) {
		this.nom = nom;
	}
 
	public String getPrénom() {
		return prénom;
	}
 
	public void setPrénom(String prénom) {
		this.prénom = prénom;
	}
 
	public String getPays() {
		return pays;
	}
 
	public void setPays(String pays) {
		this.pays = pays;
	}
 
	public String getPseudo() {
		return pseudo;
	}
 
	public void setPseudo(String pseudo) {
		this.pseudo = pseudo;
	}
 
	public String getLangue() {
		return Langue;
	}
 
	public void setLangue(String langue) {
		Langue = langue;
	}
 
	public String getEmail() {
		return email;
	}
 
	public void setEmail(String email) {
		this.email = email;
	}
 
	public String getMdp() {
		return mdp;
	}
 
	public void setMdp(String mdp) {
		this.mdp = mdp;
	}
 
	public String getDate() {
		return date;
	}
 
	public void setDate(String date) {
		this.date = date;
	}
 
 
}