bonjour à tous
j'ai un tableau qui s'affiche normalment, je veudrai que ce tableau s'affiche plusieur de fois tant que je veux.
j'utilise un <h:commandlink et un javascript mais je n'arrive pas à résoudre mon problème
mon code jsf qui normalment lui permet d'affiche un tableau à 2 dimension
mon javascript
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 <h:panelGrid columns="2"> <h:outputText value="#{msg.user31}" /> <h:inputText value="#{use.CINUSE}" /> <h:outputText value="#{msg.user32}" /> <h:inputText value="#{use.MAILUS}" /> </h:panelGrid> <div id="autreformation" style="display:block"> <a href="javascript:ajouterformation();"><h:outputText value="#{msg.user37}" /></a> </div> <h:panelGrid columns="2"> <h:outputText value="#{msg.user31}" /> <h:inputText value="#{use.CINUSE}" /> <h:outputText value="#{msg.user32}" /> <h:inputText value="#{use.MAILUS}" /> </h:panelGrid> </div>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 <script type="text/javascript"> function afficher(){ var a= document.getElementById("Annulerformation"); var b= document.getElementById("autreformation"); a.style.display="block"; b.style.display="none"; }
Merci pour votre aide
Partager