You can do it this way or rather a different approach could be that you use the class attribute for jQuery queries instead.
<display:column titleKey="label.column.part.number" property="partNumber" class="tableClass" headerClass="tableHeaderClass" /> Then in jQuery if I want to do something to the values in that particular column, I can use the selector: /* loop over the columns of importance */ $(".tableClass").each(function(i) { }); /* loop over the column headers of importance */ $(".tableHeaderClass").each(function(i) { }); Now if you always know that you need to loop over the 3rd column in the display table you could: $("table#tableId tbody tr td:nth-child(2)").each(function(i) { }); Then you don't need to overlay any special CSS classes since you know you want column #3; however, the downside here is if you decide to rearrange your table later due to some other business constraints, you have to remember to change this coding where-as by using the CSS selector option instead, you can rearrange the table without worry of your jQuery coding :P. Chris -----Original Message----- From: Foram Parikh [mailto:fapar...@gmail.com] Sent: Wednesday, July 20, 2011 1:15 AM To: displaytag-user@lists.sourceforge.net Subject: Re: [displaytag-user] how to add "name & id" to <display:column> Hi, Using table decorator solved my problem for the same. Regards, Foram luy wrote: > > Good morning List, > > May I know how to provide a column name or id to "<display:column ...>" > please? > > E.g., > > <display:column property="abc" name="abc" id="abc"> > > But I got an exception, complaining that "name" does not supported by > "<display:column>". > > > What I need is: > > <TR> > <TD name="abc" id="abc">.... </TD> > > Thanks a lot! > > -- > Emi Lu > > ---------------------------------------------------------------------- > -------- Enable your software for Intel(R) Active Management > Technology to meet the growing manageability and security demands of > your customers. Businesses are taking advantage of Intel(R) vPro (TM) > technology - will your software be a part of the solution? Download > the Intel(R) Manageability Checker today! > http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > displaytag-user mailing list > displaytag-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/displaytag-user > > -- View this message in context: http://old.nabble.com/how-to-add-%22name---id%22-to-%3Cdisplay%3Acolumn% 3E-tp31258783p31540006.html Sent from the DisplayTag - General mailing list archive at Nabble.com. ------------------------------------------------------------------------ ------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user