Bonjour,

J'ai fait des recherches sur le forum et sur le net pour ce problème, mais je n'ai rien trouvé.
J'ai une page jsp où j'affiche 2 tableaux l'un en dessous de l'autre en utilisant les display tag.

L'affichage se passe bien, mais si je trie une des colonnes du 1er tableau, ça trie aussi le tableau d'en dessous ....

Qu'est ce que j'ai manqué ?
Merci d'avance,

Julien

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
<div>
 <table width="100%" border="0" align="right" cellspacing="3"> 
 
	<% if (session.getAttribute("testAnomaly") != null) { %>		
		<tr class="tl-table">
		<td width="50%" class="tl-table" valign="top">		
		<display:table name="${sessionScope['testAnomaly']}" >
			<display:column property="anomalyId" style='width:5%' title="AnomalyID" sortable="true" class="tl-lineColorDefault" />
			<display:column property="anomalyPublicDescription" style='width:35%' title="Public description"  sortable="true" class="tl-lineColorDefault"/>
			<display:column property="anomalyPrivateDescription" style='width:30%' title="Private description"  sortable="true" class="tl-lineColorDefault"/>
			<display:column property="anomalyScope" style='width:15%' title="Scope"  sortable="true" class="tl-lineColorDefault" />
			<display:column property="anomalyType" style='width:15%' title="Type"  sortable="true" class="tl-lineColorDefault" />
			</display:table>	
		</td></tr>		
	<% } %>		
 
</table>
</div>
 
<div>
 <table width="30%" border="0" align="left" cellspacing="3">   
	<% if (session.getAttribute("keyword") != null) { %>		
		<tr class="tl-table">
		<td class="tl-table" valign="top">	
			<fieldset>
			<legend><i>Keywords</i></legend>		
			<display:table name="${sessionScope['keyword']}" >
				<display:column property="testKeywordId" style='width:5%' title="#" class="tl-lineColorDefault" />
				<display:column property="testKeywordName" style='width:35%' title="Name" class="tl-lineColorDefault" />
			</display:table>	
			</fieldset>
		</td></tr>		
	<% } %>		
</table>
</div>