Bonjour,
Voila dans un projet je combine Struts 2 et DisplayTag sans problème jusque là.
Aujourd'hui je dois mettre en place un filtre à partir d'une valeur d'une colonne dans displayTag. Donc le problème vient du fait que j'arrive pas à faire pointer mon test sur la valeur utilisée dans la colonne...
Voici mon code :
Alors bien sur pas ma de synthaxe y sont passé... Mais toutes sans succès , je pense que cela vient que Struts 2 et DisplayTag ne gère pas l'accès aux variable de la même façon.. Donc si quelqu'un à déjà rencontré cette problèmatique je suis prenneur.
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 <display:table name="sessionScope.lstResultExploit" requestURI="/resultats.action" id="tableExploit" pagesize="10" defaultorder="descending" defaultsort="1"> <display:column property="execLotId" title="Exec id" sortable="true" style="width:54px;"/> <display:column property="batchNom" title="Batch" sortable="true" style="width:187px;" /> <display:column property="lotNom" title="Lot" sortable="true" style="width:187px;"/> <s:if test='"KO".equals(execLotStatut)'> <!-- "KO".equals(tableExploit.execLotStatut) --> <display:column property="execLotStatut" title="Statut" sortable="true" style="width:77px;background-color:red;"/> </s:if> <s:else> <display:column property="execLotStatut" title="Statut" sortable="true" style="width:77px;"/> </s:else> <display:column property="execLotDebut" sortable="true" decorator="fr.acmn.ihm.decorator.DateDecorator" title="Début" /> <display:column property="execLotFin" sortable="true" decorator="fr.acmn.ihm.decorator.DateDecorator" title="Fin" /> <display:column property="lotGroupeServeur" title="Serveur" sortable="true" style="width:91px;"/> </display:table>
Merci.
Partager