Boonjour ,
j`ai un menu deroulant obtenu a partir de richfaces et j`aimerais recuperer la valeur de chaque menuitem selectionne en gros toute la ligne selectionnee .voici ma page de menu qui se deroule ainsi : Niveau--->Sexe---->Poids

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
 
 <td> Categories  </td>
          <td> 
          <rich:panel id="panel" >
 
                 <h:outputText value="Cliquer pour avoir le menu de categories" id="texte"/>
          </rich:panel>
 
             <rich:contextMenu event="onclick" attachTo="panel" submitMode="ajax">
                <rich:menuGroup value="Universitaire">
                 <rich:menuGroup value="Femme">
                   <a4j:support event="onClick"></a4j:support>
                   <rich:menuItem value ="-47kg"> 
                   <a4j:support event="onClick"></a4j:support>
                   </rich:menuItem>
                   <rich:menuItem value ="-51kg"> 
                   <a4j:support event="onClick"></a4j:support>
                   </rich:menuItem> 
                   <rich:menuItem value ="-55kg"> </rich:menuItem>
                   <a4j:support event="onClick"></a4j:support>
                   <rich:menuItem value ="-59kg"> </rich:menuItem>
                   <a4j:support event="onClick"></a4j:support>
 
                 </rich:menuGroup>
 
                 <rich:menuGroup value="Homme">
 
                   <rich:menuItem value ="-54kg"> </rich:menuItem>
                   <a4j:support event="onClick"></a4j:support>
                   <rich:menuItem value ="-58kg"> </rich:menuItem>
                   <a4j:support event="onClick"></a4j:support>
                   <rich:menuItem value ="-62kg"> </rich:menuItem>
                   <a4j:support event="onClick"></a4j:support>
                   <rich:menuItem value ="-67kg"> </rich:menuItem>
                   <a4j:support event="onClick"></a4j:support>
 
                 </rich:menuGroup>
                 </rich:menuGroup>
</rich:contextMenu>
</td>
</tr>

mon code bean est le suivant:
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
 
 
public class Categories {
 
	private Long idCategories;
	private Niveau niveau;
	private Sexe sexe;
	private Integer poids;
 
 
	public Categories(){
		super();
	}
 
	public Categories(Niveau niveau, Sexe sexe, Integer poids){
		super();
		this.niveau= niveau;
		this.sexe = sexe;
		this.poids =poids; 
	}
	/**
         * @return the niveau
         */
	public Niveau getNiveau() {
		return niveau;
	}
	/**
         * @param niveau the niveau to set
         */
	public void setNiveau(Niveau niveau) {
		this.niveau = niveau;
	}
	/**
         * @return the sexe
         */
	public Sexe getSexe() {
		return sexe;
	}
	/**
         * @param sexe the sexe to set
         */
	public void setSexe(Sexe sexe) {
		this.sexe = sexe;
	}
	/**
         * @return the poids
         */
	public Integer getPoids() {
		return poids;
	}
	/**
         * @param poids the poids to set
         */
	public void setPoids(Integer poids) {
		this.poids = poids;
	}
 
	/**
         * @return the idCategories
         */
	public Long getIdCategories() {
		return idCategories;
	}
 
	/**
         * @param idCategories the idCategories to set
         */
	public void setIdCategories(Long idCategories) {
		this.idCategories = idCategories;
	}
 
}
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
public enum Niveau {
    UNIVERSITAIRE, MINIMES, CADETS, JUNIORS, SENIORS, VETERANS
} 
 
public enum Sexe {
	HOMME, FEMME
 
}