Bonjour à tous,
J'espère que vous allez bien
J'ai une page home.xhtml (jsf 2.0) qui contient un commandButton qui devrait ouvrir un popup.
En cliquant sur ce bouton, cela charge les valeurs du bean (home) et afficher les valeurs dans le second (celui du popup).
Pour info le popup ne s'affiche pas.
Dans home.xhtml pour le bouton
<h:commandButton styleClass="full" value="#{msgs['addClient]}" action="#{home.addClient}"/>
la méthode addClient de home, charge les info et les met dans le bean client
et retourne addClient.
Pour ouvrir ce popup j'ai dans ma navigation rules de jsf.
<navigation-rule>
<from-view-id>/home.xhtml</from-view-id>
<navigation-case>
<from-outcome>addClient</from-outcome>
<to-view-id>/preparePopup.xhtml</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>
dans preparePopup.xhtml
<script type="text/javascript">
var url = "<%=request.getContextPath()%>/addClient.xhtml";
someWindow = window.open(url,'ReasonWindow','height=400, width=500 scrollbars=no resizable=no toolbar=no location=no');
window.location = "./home.xhtml";
</script>
Mais ceci ne fonctionne pas !!!!
Quelqu'un aurait une solution pour m'aider.
OU
Si quelqu'un serait comment ouvrir un popup avec un actionListener. Merci
Merci d'avance.
Partager