It seems that nested switch does not work. The switch with id "switch" used to work before I add the switch "main_switch"
Code: Select all
<ui:define name="content">
<pe:switch id="main_switch" value="#{profilBean.action}" >
<pe:defaultCase>
<h:panelGrid columns="2" width="100%">
<p:panel >
<h:panelGrid columns="3" cellpadding="20px">
<h:panelGrid style="text-align: center">
<h:graphicImage value="image?path=#{resourceServiceBean.getResource('profil.png')}" />
<p:commandLink value="Mon Profil" actionListener="#{profilBean.setOption('profil')}" update="switch" />
</h:panelGrid>
<h:panelGrid style="text-align: center">
<h:graphicImage value="image?path=#{resourceServiceBean.getResource('identity.png')}" />
<h:outputLabel value="Identifiants" />
</h:panelGrid>
</p:panel>
<p:panel header="Options">
<pe:switch id="switch" value="#{profilBean.option}" >
<pe:defaultCase >
<p align="center">
Bienvenue dans votre espace membre!
</p>
</pe:defaultCase>
<pe:case value="profil">
<h:outputLink value="diver.xhtml?diver=#{sessionBean.diver.id}">Voir mon profil actuel</h:outputLink><br />
<p:commandLink value="Modifier mes informations publiques" actionListener="#{profilBean.setAction('m_public_infos')}" /><br />
<h:outputLink >Changer de signature et de citation</h:outputLink><br />
<h:outputLink >Changer d'avatar</h:outputLink><br />
<h:outputLink >Supprimer mon compte</h:outputLink><br />
</pe:case>
</pe:switch>
</p:panel>
</h:panelGrid>
</pe:defaultCase>
<pe:case value="m_public_infos" >
ziouezoiuezoifru
</pe:case>
</pe:switch>
</ui:define>