Thanks! It worked.


-----Original Message-----
From: Inge Solvoll [mailto:[EMAIL PROTECTED] 
Sent: 06 June 2006 02:26 PM
To: Tapestry users
Subject: Re: OGNL in javascript

You have to escape the ('userId'), like this probably: (\'userId\')

On 6/6/06, Deon Visagie <[EMAIL PROTECTED]> wrote:
>
> Hi All
>
> I want to put an ognl expression in my onclick event of a link
> e.g: onclick="ognl:'javascript: document.getElementById('userId').value='
> +
> user.Id"
>
> but the above doesn't work. I have tried various variations with no
> success.
> I know onclick="ognl: user.Id" would print out the id but I need to append
> it to a string.
>
> Can it be done?
>
> Thanks,
> Deon
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to