OK, let me answer my own question. I got a solution using properties
href, paramID, and paramProperty:
<display:column property="name" href="/lablink/secure/EditProject.do"
paramId="id" paramProperty="primaryKey"/>
Jianping
________________________________
From: Jianping Roth
Sent: Thursday, April 19, 2007 1:59 PM
To: '[email protected]'
Subject: how to specify html:link forward="action" in column
Importance: High
Please someone help me out, I cannot use href "page.jsp" in column
because I use tile. I want to specify html:link forward
So I used a Decorator like this:
public class ProjectDecorator
extends TableDecorator
{
static final Log log = LogFactory.getLog(ProjectDecorator.class);
public String getName()
{
ProjectData project = (ProjectData) getCurrentRowObject();
String rv = "<html:link forward=\"editProject\"
paramProperty=\"primaryKey\"" +
" paramId=\"id\"> " +
project.getName() +
"</html:link>";
log.error(rv);
return project.getName();
}
}
But it doesn't work.
Jianping Roth
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user