I will try to read OGNL. For now, I did just as you suggested; created a
page method to return the entire string. The down side is: I have
JavaScript in my Page class which is vulnerable to UI changes (form
element id changes, i.e.). 

-----Original Message-----
From: Norman Franke [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 10, 2008 3:38 PM
To: Tapestry users
Subject: Re: T4: Newbie's questions

On Jan 10, 2008, at 3:04 PM, Zheng, Xiahong wrote:

> Thanks Norman and Ulrich for your quick response. Now I am getting
> closer. In my scenario, I want to append a dynamic content to the
> "onclick" attribute, not to replace it entirely. See below,
>
> <input jwcid="@Any"
> onclick="document.getElementById('positionId').value="  
> type="submit" />
>
> How can I append OGNL expression to the "onclick" attribute?

You can have a page method return the entire string, or read up on  
OGNL. It can do string concatenation.

-Norman




---------------------------------------------------------------------
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