Bonjour,

Je suis obligé d'utilisé jsp/servlet et jsf dans un même projet.

Le code que j'utilise est tel que:
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
<!----------------------------Edit Panel -------------------------------------------->	
	<rich:modalPanel id="editPanel" autosized="false" width="700" height="700" >
 
		<f:facet name="header">
			<h:outputText value="Modifier Utilisateur" />
		</f:facet>
		<f:facet name="controls">
			<h:panelGroup>
				<h:graphicImage value="/images/close.png" style="border:0"
					id="hidelink" styleClass="hidelink" />
				<rich:componentControl for="editPanel" attachTo="hidelink"
					operation="hide" event="onclick" />
			</h:panelGroup>
		</f:facet>
			<div>
		<h:form >
<a4j:outputPanel ajaxRendered="true">
			<h:inputText value="#{profilsUI.currentItem.mission}"></h:inputText>
 
				</a4j:outputPanel>		
				<%=profilUI.getAfficherFicheProfil("1",Constante.TYPE_DROIT_ACCES_TOTAL,request, profilUI.getCurrentItem(),lstFonctionNiv0)%>
 
 
 
 
 
 
 
 
 
				<h:panelGrid id="buttonGrid2" columns="1" width="100%">
			<h:commandButton value="valider" ></h:commandButton>	
			<!-- <input class="actifMoy" type="button" name="valider" id="valider" value="Valider" onmouseover="highlight(this);" onmouseout ="stop(this);" onclick="validerFiche()"/>  -->
		</h:panelGrid>
 
 
 
		<input type="Hidden" name="mod"   id="mod"  value="0">
		<input type="Hidden" name="mod1"   id="mod1"  value="1">
		<input type="Hidden" name="id"   id="id"  value="<%=idProfil%>">
		<input type="Hidden" name="idFonction"   id="idFonction"  value="<%=idFonction%>">
 
		</h:form>
		</div>
	</rich:modalPanel>

J'ai un dataTable dont en cliquant sur un commandlink je récupère la ligne du dataTable et je veux l'afficher dans un model panel.
Le problème est: lorsque je clique sur le commanlink l'exécution du code entre scriptlet s'execute avant la récupération de l'objet courante(ligne)"profilUI.getCurrentItem()" et par conséquent profilUI.getCurrentItem() sera passer en paramètre null.




Est ce que quelqu'un a une idée.
Merci d'avance.