Re: [T4.1.5] Creating Tapestry links, client-side.

2008-07-15 Thread DR_GLoPeL_BouCa

You retrieve item with ajax, so, you know value to generate link. Why you
want to do that in client-side.
-- 
View this message in context: 
http://www.nabble.com/-T4.1.5--Creating-Tapestry-links%2C-client-side.-tp18122606p18466171.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T4.1.5] Creating Tapestry links, client-side.

2008-06-25 Thread Andreas Andreou
It's usual to generate a direct link with a dummy parameter (like "{0}")
at the server and pass that to the javascript that when needed will replace
{0} with the dynamic parameter.

For forms, the @Hidden component (check also its encode parameter) is helpful

On 6/26/08, Jim <[EMAIL PROTECTED]> wrote:
> Hello,
>
>  Is there a clean way to dynamically (on the client-side) generate Tapestry
> Direct/Service/Page links?  e.g. if you wanted to generate a link to a
> Tapestry listener, but you don't know the parameters until after the page is
> rendered, such as if you're generating links/behavior to attach to items
> that are retrieved via AJAX.
>
>  I could just "View Source", paste the URL, and hack it.  Or I could
> dynamically update the fields of a hidden @Form.  My concern, however, is
> that I'd be locking my application into that specific version of Tapestry --
> it would be comparable to basing logic off of a class's toString()
> implementation.
>
>  I'm using Tap 4.1.5, though, so perhaps this is a reasonable risk since
> upgrading to Tap 5 would require a near-rewrite anyway?
>
>  Thanks,
>  Jim
>
> -
>  To unsubscribe, e-mail:
> [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

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



[T4.1.5] Creating Tapestry links, client-side.

2008-06-25 Thread Jim

Hello,

Is there a clean way to dynamically (on the client-side) generate 
Tapestry Direct/Service/Page links?  e.g. if you wanted to generate a 
link to a Tapestry listener, but you don't know the parameters until 
after the page is rendered, such as if you're generating links/behavior 
to attach to items that are retrieved via AJAX.


I could just "View Source", paste the URL, and hack it.  Or I could 
dynamically update the fields of a hidden @Form.  My concern, however, 
is that I'd be locking my application into that specific version of 
Tapestry -- it would be comparable to basing logic off of a class's 
toString() implementation.


I'm using Tap 4.1.5, though, so perhaps this is a reasonable risk since 
upgrading to Tap 5 would require a near-rewrite anyway?


Thanks,
Jim

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