is it possible to make columns sortable without useing column tags?
No, I don't believe this is possible.
Thanks, i sloved it this way by adding columns add runtime:
<display:table name="LIST" sort="list" id="rowid" > <% OrderedMap row = (OrderedMap) rowid; MapIterator it2 = row.mapIterator(); while (it2.hasNext()) { String key = (String)it2.next(); Object value = it2.getValue(); %> <display:column title="<%=key%>" sortable="true" headerClass="sortable"><%=value%></display:column> <%
}
%> </display:table>
any feedback?
Presumably your row.mapIterator() had better contain the same number of columns, for each row in the table?
Log in to post a comment.
is it possible to make columns sortable without useing column tags?
No, I don't believe this is possible.
Thanks,
i sloved it this way by adding columns add runtime:
<display:table name="LIST" sort="list" id="rowid" >
<%
OrderedMap row = (OrderedMap) rowid;
MapIterator it2 = row.mapIterator();
while (it2.hasNext())
{
String key = (String)it2.next();
Object value = it2.getValue();
%>
<display:column title="<%=key%>" sortable="true" headerClass="sortable"><%=value%></display:column>
<%
%>
</display:table>
any feedback?
Presumably your row.mapIterator() had better contain the same number of columns, for each row in the table?