Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3445344
By: msi_

Hello and sorry for my english. I am trying display columns, but the number
of columns is variable and their titles too. For example:

In one case: 1x0 | 1x1 | 1x2 
Other case : 1x0 | 1x2 | 2x2 | 4x3
Other case : 3x1 | 3x2

I use an ArrayList with information of table. The number and title of columns
are in a HashMap. One example is:

Name | 1x0 | 1x1 | 1x2
A    |     |     |   

My problem is i can´t put variable title columns. The code is:

<display:table id="tabla" name="sessionScope.tabladatos">

<display:column title="Name" property="nombre"/>

<logic:iterate id="item" name="tabla" property="situaciones">

<display:column title="¿¿¿???"></display:column>
</logic:iterate>
        
</display:table> 

-----------------------------

I can recover information from request object and use that value in title
column:

<%String name = (String) request.getAttribute("Something"); %>
.....
<display:column title="<%=name %>">
... 

I can recover the value that i need: <bean:write name='item' property='key'/>

but i can´t put:
<% String situacion = <bean:write name='item' property='key'/>  %>

<logic:iterate id="item" name="tabla" property="situaciones">

<display:column title="<%=situacion"></display:column>

</logic:iterate>

¿Is possible put a variable title using a HashMap?

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=249318


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to