Bonjour,
j'ai un souci de mise à jour de mes inputText.
lorsque je choisie une valeur dans mon selectOneMenu je recherche l'objet lier et je l'affiche afin que les valeur puisse etre changé.Cependant les valeur ne change pas.

ma page 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
 
<rich:panel  header="Gate 1" style="margin-left:75px;background-color:#d0d0d0;width:600px;" >
				<h:form id="BesoinForm">	
					<h:outputLabel><h:outputText value="Selection du Besoin :"/></h:outputLabel>
					<h:selectOneMenu id="besoin" value="#{Gate1Bean.besoin.id}"
					 valueChangeListener="#{Gate1Bean.besoinByID}">
						<f:selectItems value="#{Gate1Bean.listBesoin}" />
						<a4j:support event="onchange" reRender="value" />
					</h:selectOneMenu>
					<rich:spacer height="30px" />
 
					<rich:panel id="value"  style="background-color:#c0c0c0;">
						<h:panelGrid columns="2" >
 
							<h:outputLabel><h:outputText value="Date RAO (dd/MM/yyyy) :"/></h:outputLabel>
							<rich:calendar id="dateRAO" datePattern="dd/MM/yyyy" value="#{Gate1Bean.besoin.daterao}" />
 
							<h:outputLabel><h:outputText value="Date Remise offre (dd/MM/yyyy) :"/></h:outputLabel>
							<rich:calendar id="dateURM" datePattern="dd/MM/yyyy" value="#{Gate1Bean.besoin.dateurm}" />
 
							<h:outputLabel><h:outputText value="Cout cible :"/></h:outputLabel>
							<h:inputText id="coutCible" value="#{Gate1Bean.besoin.coutCible}" />
 
							<h:outputLabel><h:outputText value="Cout TAS :"/></h:outputLabel>
							<h:inputText id="coutTAS" value="#{Gate1Bean.besoin.coutTAS}" />
 
							<h:outputLabel><h:outputText value="Nombre de jours TAS:"/></h:outputLabel>
							<h:inputText id="nbJTAS" value="#{Gate1Bean.besoin.nbjoursTAS}" />
 
							<h:outputLabel><h:outputText value="Fichier :"/></h:outputLabel>
							<h:commandButton action="#{Gate1Bean.upload}" value="ajouter" />
 
					</h:panelGrid>
ma bean
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
 
public class Gate1Bean {
	Besoin unBesoin = new Besoin();
 
	public Besoin getBesoin()
	{
		return unBesoin;
	}
 
	public void setBesoin(Besoin unBesoin)
	{
		this.unBesoin = unBesoin;
	}
 
 
	public void besoinByID(ValueChangeEvent event)
	{
		int userId = (Integer) event.getNewValue();
		if(userId!=0)
			unBesoin = BesoinDAO.findById(userId);
		else
			unBesoin = new Besoin();
	}
 
	public List<SelectItem> getListBesoin(){
		Utilisateur unUser= new Utilisateur();
		ArrayList<SelectItem> listBesoin= new ArrayList<SelectItem>();
		try{
			ConnexionBean userInfo = (ConnexionBean) FacesContext.getCurrentInstance().getExternalContext()
									.getSessionMap().get("connexionBean");
			unUser = userInfo.getUtilisateur();
			Iterator<Besoin> it = BesoinDAO.findByUser(unUser).iterator();
			listBesoin.add(new SelectItem(0,""));
			while (it.hasNext()){
				Besoin unBesoin = it.next();
				listBesoin.add(new SelectItem(unBesoin.getId(),unBesoin.getLibelle()));
			}
		}
		catch(Exception e){}
		return listBesoin;
	}
la valeur et bien chargé dans l'objet mais il y a une sorte de maj qui ce fait et la valeur se remet a 0
pouvais vous m'aider?