> I am facing an issue: using DT in a column that has > hyperlink with parameters. Here's the detailed problem: > > I have to show a few results in a datagrid (table) with a > link to each entry to either view details or edit it. > However, I cannot use > <portlet:actionURL><portlet:param .../>... > or > <portlet:renderURL><portlet:param .../>... > > since the value to the parameter is dynamic, depends on the > row-number.
Since you don't know the order in which your content will be output, it is not safe to try and calculate a row number inline. Your link should not be based on a relative row number, but on some property of the iterated object. (By the way, I strongly recommend not using the RI for a production environment.) > > How can I make it happen? > > Expected output like: > > ___________________________________ > | Data | | | > |----------------|------|---------| > | Row 1 | View | Edit | > | Row 2 | View | Edit | > |________________|______|_________| > > Now the "View" and "Edit" items are hyperlinks. In normal > JSP, they would be something like "view.jsp?item=1" or > "edit.jsp?item=2" etc. > > > -- > Cheers, > Gaurav Vaish > http://www.mastergaurav.org > http://mastergaurav.blogspot.com > -------------------------------- > > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ displaytag-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/displaytag-user

