Bonjour a tous
Dans ma page jsf je veux saisir dans un champ text puis appuyer sur le lien rechercher qui m'ouvre une pop-up je veux passé a cette pop-up ce qui a été saisie dans l'imput text.
voici mon code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 <h:inputText binding="#{RechercheAvancee.text3}" id="text3" style="height: 15px; width: 165px" title="#{msg.libelle_reference_client_precision}" value="#{RechercheAvancee.clientString}"/> <ui:hyperlink binding="#{RechercheAvancee.hyperlink1}" id="hyperlink1" onClick="selectClientRecherche();" text="(rechercher...)" url="#"/>
ma fonction javascript :
Merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 function selectClientRecherche() { l=500; h=370; haut=Math.round((screen.availHeight-h)/2); gauche=Math.round((screen.availWidth-l)/2); window.open('./SelectionClientRecherche.jsp', 'select', 'toolbar=0,menubar=0,location=0,scrollbars=1,width='+ l + ',height=' + h + ',top=' + haut + ',left=' + gauche); }
Partager