Je veux afficher un model panel tout en appuyant sur un boutton du panel menu.
Mon problème est que le model panel ne s'affiche pas!!!
Voici la page Jsp
Voici le code java
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 <rich:modalPanel width="600" height="300" binding="#{expertsCtrl.mpexpert}" > <h:form> <rich:panel> <h:panelGrid columns="4"> <h:outputText value="FREE-LANCE:"/> <h:selectBooleanCheckbox></h:selectBooleanCheckbox> <h:outputText value="SOCIETE_PARTENAIRE:"/> <h:selectOneMenu style="width: 130px" ><f:selectItems value="#{affiche_liste.pays_}"/> </h:selectOneMenu> </h:panelGrid> </rich:panel> <table> <tr> <td> <rich:panel> <f:facet name="header"> <h:outputText value="FICHE EXPERT"></h:outputText> </f:facet> <h:panelGrid columns="2"> <h:outputText value="EXPERT_PRENOM:"/> <h:inputText style="width: 130px" value="#{expertsCtrl.newexpert.prenomExpert}"></h:inputText> <h:outputText value="EXPERT_NOM:"/> <h:inputText style="width: 130px" value="#{expertsCtrl.newexpert.nomExpert}"></h:inputText> <h:outputText value="DOMAINES_ACTIVITE:"/> <h:inputText style="width: 130px" value="#{expertsCtrl.newexpert.domainesDactivite}"></h:inputText> <h:outputText value="ADRESSE:"/> <h:inputText style="width: 130px" value="#{expertsCtrl.newexpert.adresse}"></h:inputText> </h:panelGrid> </rich:panel> </td> </tr> </table> <h:commandButton value="Mettre à jour" action="#{expertsCtrl.createExpert}" /> </h:form> </rich:modalPanel> <rich:panelMenu style="width:200px" mode="ajax" iconExpandedGroup="disc" iconCollapsedGroup="disc" iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right" iconCollapsedTopGroup="chevronDown"> <rich:panelMenuGroup label="SAISIE"> <rich:panelMenuItem label="FICHE APO" action="#{expertsCtrl.ModelPanel_Affiche}"> <f:param name="current" value="FICHE APO"/> </rich:panelMenuItem> </rich:panelMenu>
Est ce que quelqu'un a une idee????
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 public void ModelPanel_Affiche(){ System.out.println("AFFICHE EXPERTS§§§§§§§§§§§§§§"); this.mpexpert.setRendered(true); this.mpexpert.setKeepVisualState(true); System.out.println("END AFFICHE EXPERTS!!!!!!!!!!!!!!!!!!!!!!!!"); }
Partager