Bonjour,

J'ai un souci. Un second tableau doit apparaitre en dessou du premier tableau une fois un lien cliqué sur le premier tableau. Or mon souci est que déjà d'une le second tableau vide (en-tête et pied du tableau) apparait d'office lorsque l'on se connecte à la page.

Je ne sais pas s'il est correct de faire ceci :
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
 
<tbody>
 <tr>
   <logic:iterate id="MIFetatACAV" name="ListEtatACAV" >
    <tr>
     <td align="center"><bean:write name="MIFetatACAV" property="idsupport"/></td>
     <td align="center"><bean:write name="MIFetatACAV" property="libellecourt"/></td>				
     <td align="center"><bean:write name="MIFetatACAV" property="valeur"/></td>					
     <td align="center"><bean:write name="MIFetatACAV" property="montantacavp"/></td>
     <td align="center"><bean:write name="MIFetatACAV" property="montantacava"/></td>	
     <td align="center">
<a href="#" onclick="javascript:AffichePopup('AfficheTableauAcav','OK');return false;">
 
         <html:link action="initEtatACAV" paramName="MIFetatACAV" paramId="idacavattente" paramProperty="idacavattente">								
           <bean:write name="MIFetatACAV" property="montantacavattente"/>
         </html:link></a></td>
    <logic:present name="cache" scope="session">
 
       <td align="center"><bean:write name="MIFetatACAV" property="idacavattente"/></td>	
 
    </logic:present>	
   </tr>
  </logic:iterate>
 </tr>	
</tbody>	
 
 
<!-- Fin du tableau ACAV-->
<!-- Début du tableau FLUXACAV-->
<!-- Affichage du tableau -->
<div id="AfficheTableauAcav" style="display:none">	
<logic:equal property="hasResultFlux" name="mifRechercheFluxActionForm"  value="true" > 
<table class="table-autopage:6 table-page-number:t1page table-page-count:t1pages table-stripeclass:alternative tablelist">
 
<thead>
<p></p>
<p></p>
 
<tr class="tdhead1">
 
<td colspan="14"><i>Support 1 : Flux comptabilisés pour l'ACAV en attente</i></td>
 
</tr>	
<tr class="tdhead">
<td colspan="2"><bean:message key="num.flux"/></td>
<td><bean:message key="type.date.valeur"/></td>
<td><bean:message key="label.montant"/></td>
<td><bean:message key="parts.pro"/></td>
<td><bean:message key="cours.pro"/></td>
<td><bean:message key="parts.def"/></td>
<td><bean:message key="cours.def"/></td>
<td><bean:message key="label.di"/></td>
<td><bean:message key="label.rf"/></td>
<td><bean:message key="label.statut"/></td>
<td><bean:message key="label.type"/></td>
<td colspan="2"><bean:message key="label.support"/></td>
</tr>
</thead>
 
<logic:notEmpty name="mifRechercheFluxActionForm" property="listResult" >
 
<tbody>
<tr>
 
<logic:iterate id="ligneFlux" name="mifRechercheFluxActionForm" property="listResult" type="intCommunBean.flux.MifResultRechercheFluxBean" indexId="index" >
<tr>
<td colspan="2">
 
<html:link action="initEtatACAV" paramName="ligneFlux" paramId="numeroFlux" paramProperty="numeroFlux">
 
   <bean:write name="ligneFlux" property="numeroFlux"/></html:link> </td>
   <td><bean:write name="ligneFlux" property="strValeur"/></td> 
   <td><bean:write name="ligneFlux" property="montant"/></td>
   <td><bean:write name="ligneFlux" property="partsPro"/></td>
   <td><bean:write name="ligneFlux" property="coursPro"/></td>
   <td><bean:write name="ligneFlux" property="partsDef"/></td>
   <td><bean:write name="ligneFlux" property="coursDef"/></td>
   <td><bean:write name="ligneFlux" property="di"/></td>
   <td><bean:write name="ligneFlux" property="rf"/></td>
   <td><bean:write name="ligneFlux" property="typeStatut"/></td>
   <td><bean:write name="ligneFlux" property="type"/></td>
 
   <td colspan="2"><bean:write name="ligneFlux" property="support"/></td> 
  </tr>
  </logic:iterate>
 </tr>
</tbody>
Pour le javascript :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
function AffichePopup(id, action) {
	var d = document.getElementById(id);
	if (d.style.display == "")	{
			d.style.display = "block";
		} else {
			d.style.display = "";
		} 
 
}