Bonjour,
j'utilise le DropDownMenu de RichFaces dans une oage jsf,

j'insere un lien dans ce menu de la façon suivane :

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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
 
    <style>
        .optionList {
          height:22px;
        }
        .vertical-menu-cell {
            padding:0px 4px 0px 4px;
        }
 
    </style>
 
    <h:form>
 
        <h:panelGrid class="vertical-menu-cell" columnClasses="optionList" columns="1" cellspacing="0" cellpadding="0">
            <rich:dropDownMenu  value="Option1" direction="bottom-right" jointPoint="tr">
 
                <rich:menuItem >
 
                   <h:commandLink value="Account Profile List" action="#{offMgtPresentationController.getListAccountProfile}">
 
					</h:commandLink>
 
                </rich:menuItem>
 
            </rich:dropDownMenu>
 
 
        </h:panelGrid>
    </h:form>   
 
 
</ui:composition>
puis dans le faces-config ,j'ajoute la regle de navigation :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
<navigation-rule>
  <from-view-id>/AccountProfile/jspx/menu.jspx</from-view-id>
  <navigation-case>
   <from-outcome>getListAccountProfile</from-outcome>
   <to-view-id>/AccountProfile/jspx/ListAccountProfile.jspx</to-view-id>
  </navigation-case>
 </navigation-rule>
mais le proleme c'est que quand je clique sur le lien du menu je ne me dirige pas vers la page "ListAccountProfile.jspx" meme si l'action est executée.

N.B : le lien marche parfaitement a l exterieur du menu.

merci pour votre aide