Thank you reply,
but I find it didn't work.

ssmItems[1]=["Dynamic Drive", "<span jwcid="@DirectLink" listener="ognl:
listeners.goOne2OnePage" parameters="ognl:{agentId,'MiPhyChemCharacte'}"
renderer="corner.orm.tapestry.RawURLLinkRenderer"/>", ""];

Thanks
Jun Tsai
2006/3/16, Andreas Andreou <[EMAIL PROTECTED]>:
>
> All link components support a renderer parameter, see:
>
> http://jakarta.apache.org/tapestry/tapestry/ComponentReference/DirectLink.html
>
> Provide it with an instance of this:
>
> public class RawURLLinkRenderer implements ILinkRenderer {
>     public void renderLink(IMarkupWriter writer,
>                            IRequestCycle cycle,
>                            ILinkComponent linkComponent) {
>         writer.print(linkComponent.getLink(cycle).getAbsoluteURL(), true);
>     }
> }
>
> Mike Snare wrote:
>
> >I suppose it would be possible using a <script> component that uses
> >the direct service?  Not exactly sure how that would work, but take a
> >look at the script component and tutorials to get an idea.
> >
> >-Mike
> >
> >On 3/16/06, Jun Tsai <[EMAIL PROTECTED]> wrote:
> >
> >
> >>hi,all
> >> Many javascript supply the link array.such as:
> >> ssmItems[0]=["Coding Forums", "http://www.codingforums.com";, ""]
> >>
> >>I want to write a DirectLink url .
> >> ssmItems[0]=["Coding Forums", "<span jwcid="@DirectLink"
> >>listener="ognl:test" parameter="ognl:testId"/>, ""]
> >>
> >>But I didn't work well.
> >>
> >>How to do it?
> >>
> >>Thanks
> >>Jun Tsai
> >>
> >>
> >>--
> >>Welcome to China Java Users Group(CNJUG).
> >>http://cnjug.dev.java.net
> >>
> >>
> >>
> >>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net

Reply via email to