I've encountered the same problem. The id atribute seems defined by the base tag classes rather than the display09 specific ones (I tried to overload it's accessors to no avail), and it seems it can't take a runtime expression.
My solution was to add a new attribute, tableid, and set that with an rt expression. The new attribute is used in addition to id & name to identify the table in question. I'd be interested to here what other peoples opinions of my design are. I needed a quick fix - there may be a better solution. Paul -----Original Message----- From: B�rd Arve Evjen [mailto:[EMAIL PROTECTED] Sent: 22 August 2003 09:11 To: [EMAIL PROTECTED] Subject: [displaytag-user] Problem setting unique id name for many tables I have several tables I need to output with a for loop, but I need to set the id different for each table to enable sorting. I've tried this: <% for (int i=0; i < initialMarginTypes.length; i++) { request.getSession().putValue("im", imh.getInitialMarginsOnType(initialMarginTypes[i].type)); %> <bean:define id="tablename" value="table<%=i%>"/> <tr> <td valign="top"> <b><%= initialMarginTypes[i].typeName %></b> <br> <display:table id="<%=tablename%>" name="im" scope="session" width="100%" pagesize="100" requestURI="result.jsp" sort="list" decorator="com.om.condico.util.web.ColumnsWrapper"> <display:column title="<%=ldeliveryPeriod%>" property="deliveryPeriod" sort="true" headerClass="sortable" nulls="true" width="20%"/> <display:column title="<%=lhours%>" property="hours" align="center" sort="true" headerClass="sortable" nulls="true" width="10%"/> <display:column title="<%=lboughtVol%>" property="boughtVolume" align="center" sort="true" headerClass="sortable" nulls="true" width="10%"/> <display:column title="<%=lsoldVol%>" property="soldVolume" align="center" sort="true" headerClass="sortable" nulls="true" width="10%"/> </display:table> <br><br> </td> </tr> <% request.getSession().removeValue("im"); } %> I've also tried to set it using java, like: String tablename = "table"+i; and refer it like <%=tablename%> but that not work either. Can anyone help me out here? Cheers, Bard ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ displaytag-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-user ************************************** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ displaytag-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-user

