That'll work, thanks Jesse! Jim
-----Original Message----- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 6:39 PM To: Tapestry users Subject: Re: "Manually" calling listeners. Yeah, I think the most correct way to do it would be using the LinkFactory + DirectServiceParameters to construct the link the same way that DirectLink does, but without having those sources in front of me right now I know that the quick and dirty method would be if you defined a DirectLink you wanted to use the url of, and then call "ognl:yourDirectLink.getLink(requestCycle).getURL()" (Might want to double check method signatures for ILink ) jesse On 2/16/06, Jim Steinberger <[EMAIL PROTECTED]> wrote: > > I'm looking for a way to embed listener-calling URLs directly in the > page, rather than in an <a>-tag ala the DirectLink component. Is that > currently possible in a relatively straightforward way? > > e.g. > > <script ..> > function simulatedLink() { > window.location='<span jwcid="@Insert" > ...some_magic_that_results_in_the_same_URL_that_a_DirectLink_would_gener > ate ... />'; > } > </script> > > > > Thanks, > > Jim > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
