Bonjour,
Je suis en train de développer en JSP et dans une page j'affiche mes données via un displaytag. Dedans j'ai un lien (derniere colonne) et quand je clique dessus j'aimerais pouvoir récupérer et afficher (pour l'instant l'afficher par le "alert" javascript pour ensuite faire un traitement) le numéro de ligne du tableau. est-ce que quelqu'un aurait une idée svp??
ci-joint le code de mon tableau.
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 <div id="list"> <display:table id="planifierList" style="width: 100%;border: 1px solid #000000;" requestURI="planningCollectif.do" cellpadding="0" cellspacing="2" name="${planifierList}" excludedParams="*" > <display:column titleKey="demande.date" style="width:80px; padding-right:10px;" sortable="false" sortProperty="date" group="0"> <fmt:formatDate pattern="dd/MM/yyyy " value="${planifierList.dateStart}" /> </display:column> <display:column titleKey="demande.client" style="width: 200px;" sortable="false" sortProperty="client"> ${planifierList.client.societe} ${planifierList.client.nom} </display:column> <display:column titleKey="demande.urgence" style="width: 200px;" sortable="false" sortProperty="urgence"> ${planifierList.urgence} </display:column> <display:column titleKey="demande.categorie" style="width: 200px;" sortable="false" sortProperty="TypeDemande"> ${planifierList.categorie.nom} </display:column> <display:column titleKey="demande.origine" style="width: 200px;" sortable="false" sortProperty="origine"> ${planifierList.origine} </display:column> <display:column titleKey="demande.sujet" style="width: 200px;"> ${planifierList.sujet} </display:column> <display:column title=" " style="width: 20px;" class="printDisplay" headerClass="printDisplay"> <a href="#" onclick="alert();" >lien</a> </display:column> </display:table> </div>
Partager