Bonjour,
j'ai deux liens h:commandLink dans un dropDownMenu de la façon suivante :
quand je clique sur ces deux lien qui sont à l'intérieur du dropDownMenu,mes actions s'exécutet mais je ne me redirige pas vers les bonnes pages 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 <h:form> <h:panelGrid class="vertical-menu-cell" columnClasses="optionList" columns="1" cellspacing="0" cellpadding="0"> <rich:dropDownMenu style="border:1px solid #{a4jSkin.panelBorderColor}" value="Account Profile" direction="bottom-right" jointPoint="tr"> <rich:menuItem ><h:commandLink value="Create" action="#{offMgtPresentationController.createAccountProfile}"> </h:commandLink></rich:menuItem> <rich:menuItem><h:commandLink value="List" action="#{offMgtPresentationController.getListAccountProfile}"> </h:commandLink></rich:menuItem> </rich:dropDownMenu> </h:panelGrid> <h:commandLink value="Create" action="#{offMgtPresentationController.createAccountProfile}"> </h:commandLink> <h:commandLink value="List" action="#{offMgtPresentationController.getListAccountProfile}"> </h:commandLink> </h:form>
pourtant quand j'exécute ces lien à l'extérieur du DropDownMenu tout marche bien.
la partie ou je définie les navigations rules au faces-config est la suivante :
merci pour votre aide.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 <navigation-rule> <from-view-id>/template/test.jspx</from-view-id> <navigation-case> <from-outcome>getListAccountProfile</from-outcome> <to-view-id>/AccountProfile/jspx/apList.jspx</to-view-id> </navigation-case> <navigation-case> <from-outcome>generalInformations</from-outcome> <to-view-id>/AccountProfile/jspx/GeneralInformations.jspx</to-view-id> </navigation-case> </navigation-rule>
Partager