You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Darío Vasconcelos <da...@gmail.com> on 2005/11/02 00:55:53 UTC

Re: Option to generate only the URL in DirectLink

Leonardo,

even if @DirectLink knew how to just output the URL, you can't just
include a DirectLink inside a <script> block, as you would do with
other templating frameworks... you either need to create a @Script
block and a feed it a parameter generated from a method in your .java
that outputs the URL for a DirectLink (there are plenty of examples in
previous posts in  this list) or include the DirectLink in your page
and reference it from javascript with some DOM-related call.

On 11/1/05, Leonardo Quijano Vincenzi <le...@dtqsoftware.com> wrote:
> Is there anyway I can tell @DirectLink to create just the URL, without
> the surrounding <A HREF=""></A> tags?
> (same would apply to other links).
>
> I'm trying to create some javascript that changes the document's
> location, and it'd be useful to have a single parameter in @xxLink that
> only sends the URL.
>
> Thanks
>
> --
> Ing. Leonardo Quijano Vincenzi
> Director Técnico
> DTQ Software
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


--
An expert is a person who has made all the mistakes that can be made
in a very narrow field.
   Niels Bohr

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Option to generate only the URL in DirectLink

Posted by Leonardo Quijano Vincenzi <le...@dtqsoftware.com>.
Darío Vasconcelos wrote:
> Leonardo,
>
> even if @DirectLink knew how to just output the URL, you can't just
> include a DirectLink inside a <script> block, as you would do with
> other templating frameworks... you either need to create a @Script
> block and a feed it a parameter generated from a method in your .java
> that outputs the URL for a DirectLink (there are plenty of examples in
> previous posts in  this list) or include the DirectLink in your page
> and reference it from javascript with some DOM-related call.
>   
Hmm, I think I can actually include it as in other templating frameworks:

<script type="text/javascript">
        var linkString = '<span jwcid="@Insert" raw="true" value="ognl:components.progress.linkString" />';


in:
http://tacos.sourceforge.net/components/Refresh.html

-- 
Ing. Leonardo Quijano Vincenzi
Director Técnico
DTQ Software




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org