Salut

j'ai un problème dans le sauvegarde d'un formulaire. Voilà le code JSF
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
 
<h:form id="form_detail_ajouter" >
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td width="100"><b><h:outputText value="Nom de zone:" /></b></td>
 
					<td width="100"><h:inputText id="o_t_nom_zone" readonly="false"
						value="#{zoneBean.zone1.nomZone}">
					</h:inputText></td>
					</tr>
					<tr>
					<td><b><h:outputLabel value="etat :" /></b></td>
					<td>< <select name="etat" id="etat" readonly="false"
						value="#{zoneBean.zone1.etat}">
						<option value="0">En pause</option>
						<option value="1">En marche</option>
					</select></td>
				</tr>
				<tr>
					<td><b><h:outputLabel value="longitude centre :" /></b></td>
					<td><h:inputText id="o_n_long_centre" readonly="false"
						value="#{zoneBean.zone1.longitudeCentre}">
 
					</h:inputText></td>
					</tr>
					<tr>
					<td><b><h:outputText value="Lattitude centre :" /></b></td>
					<td><h:inputText id="o_n_lattit_centre" readonly="false"
						value="#{zoneBean.zone1.lattitudeCentre}">
 
					</h:inputText></td>
 
				</tr>
				<tr>
					<td><b><h:outputText value="diametre :" /></b></td>
					<td><h:inputText id="o_n_diametre" readonly="false"
						value="#{zoneBean.zone1.diametre}">
 
					</h:inputText></td>
					</tr>
					<tr>
					<td><b><h:outputText value="numéro téléphone:" /></b></td>
					<td><h:inputText id="o_n_numTel" readonly="false"
						value="#{zoneBean.zone1.numTel}">
					</h:inputText></td>
				</tr>
				<tr>
					<td><b><h:outputText value="Adresse mail :" /></b></td>
					<td><h:inputText readonly="false" id="o_t_mail_adresse"
						value="#{zoneBean.zone1.mailAdresse}" /></td>
						</tr>
						<tr>
					<td><b><h:outputText value="Date de début:" /></b></td>
					<td><rich:calendar readonly="false" datePattern="dd/MM/yyyy"
						popup="true" value="#{zoneBean.zone1.date_debut}" /></td>
 
				</tr>
						<tr>
					<td><b><h:outputText value="Date de fin:" /></b></td>
					<td><rich:calendar readonly="false" datePattern="dd/MM/yyyy"
						popup="true" value="#{zoneBean.zone1.date_fin}" /></td>
 
				</tr>
 
			</table>
			</h:form>
<h:form>
		<a4j:commandButton value="annuler" action="#{zoneBean.annulerAjout }"
			image="icons/ajouter1.png" 
		    onclick="javascript:Richfaces.hideModalPanel('_panel_carte_zone')"
		    reRender="form_detail_ajouter">
		</a4j:commandButton>
	<a4j:commandButton value="ajouter" action="#{zoneBean.ajouterZone }"
			image="icons/ajouter1.png" reRender="zone_tab,form_detail_ajouter"
 
			onclick="javascript:Richfaces.hideModalPanel('_panel_carte_zone')"
		   >
		</a4j:commandButton>
		</h:form>
		</div>
la méthode ajouterZone
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
public String ajouterZone() {

		try {
			zone1.setId_soc("2");
			System.out.println("zzzzzzzzzzzzzzzzzzzzz"+zone1.getNomZone());

			this.zoneService.saveZone(this.zone1);
			log.debug("#DDD############ createZone->success");
			zone1 = null;
		}

		catch (Exception e) {
			e.printStackTrace();
			return "failure";
		}
		return "success";

	}
le problème c'est que le println affiche null
svp aidez moi je suis bloqué et il s'agit de mon PFE. Merci d'avance