>From what I have read and understand  I think you could do something like this:

Lets say you have a Foreach component and inside you have links to an special 
service

<tr jwcid="@Foreach" source="ognl: reports" value="ognl: report" element="tr">
<td><span jwcid="@Insert" value="ognl: report.id"> 12345 </span></td>
<td><span jwcid="@Insert" value="ognl: report.name"> Special Report </span></td>
<td>
<a jwcid="@ServiceLink" service="reportService" parameters='ognl: {report.id, 
report.type}'> See
Report
</a>
</td>
</tr>

this way you can send parameters to your service and in the service you will 
get them by doing
somthing like this:

public void service(IEngineServiceView engine, IRequestCycle cycle, 
ResponseOutputStream output)
throws ServletException, IOException {
   Object[] parameters = getParameters(cycle);
   String reportId =  (Integer) parameters[0];
   Integer reportType = (String) parameters[1];
   // Your call to your PDF service
}

You will still need to define your link.

I hope this helps you in someway.

Mark.

The Greatest Thing You'll Ever Learn
It's Just To Love And Be Loved In Return


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to