Hi,
Not sure if this is what you were looking for, but here it goes.
I modified the Wrapper.java file to include the following function:
public String getRequiredActionTakeActionSCLink(){
BasicDynaBean rowObject = (BasicDynaBean) getCurrentRowObject();
Integer sfdid = (Integer) rowObject.get("sfdid");
int sfdid_int = sfdid.intValue();
String sfdid_string = Integer.toString(sfdid_int);
String mcid_string = sfp.nextSCRequiredActionProcessingMenu
(sfdid_string);
return " <a href = \"/" + cf.getSubdomain() +
"/displayMenu.jsp?sfdid=" + sfdid_string + "&mcid=" + mcid_string + "\">Take
Action</a> ";
}
As you can see it produces a link that has multiple parameters in it.
Then in my jsp page I used the following code to create my table:
RowSetDynaClass new_required_actions =
ActionViewTables.requiredActionsTableBySC(sdid_string, raid_string,
sid_string, rid_string);
// System.out.println("Get rows method " +
new_ncs.getRows());
%>
<%
request.setAttribute("new_required_actions_attribute",
new_required_actions); %>
<display:table name="
requestScope.new_required_actions_attribute.rows" id="row" decorator="
teska.displaytag.Wrapper">
<display:column property="sfdid"
title="ID" sortable="true"/>
<display:column property="priority"
title="Priority" sortable="true"/>
<display:column
property="dateResponseDueFormatted" title="Response Due"
sortable="true"/>
<display:column
property="requiredActionViewLink" title="View" />
<display:column
property="requiredActionTakeActionSCLink" title="Take Action" />
</display:table>
as you can see the last column in the table has the property
"requiredActionTakeActionSCLink". This calls the
getRequiredActionTakeActionSCLink() function in the wrapper.
I used: BasicDynaBean rowObject = (BasicDynaBean) getCurrentRowObject(); to
get the current row in the column and Integer sfdid = (Integer)
rowObject.get("sfdid"); to pull a specific value out of that cell in the
column to work with it. My second parameter (mcid) I got by calling a
separate class I was using.
Give this a try and let me know if it works for you.
Cheers,
Courtenay
On 10/2/07, Abhinav Gogna <[EMAIL PROTECTED]> wrote:
>
> Greetings,
>
> First I would like to thank everybody in display tag community who have
> created a wonderful product.
>
> Now to the question :)
>
> I am still a newbee to displaytag and was wondering if there is a way to
> pass multiple parameters in using href links. I searched and came across
> some post, which uses displaytag-2.0.jar but its not compatible with lot
> of other features that displaytag 1.1.1 provides.
>
> Thanks,
> Abhi
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user