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?
-----Original Message-----
From: Norman Franke [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 10, 2008 2:15 PM
To: Tapestry users
Subject: Re: T4: Newbie's questions
On Jan 10, 2008, at 2:05 PM, Zheng, Xiahong wrote:
> 1) Layout management: I couldn't find a documented solution to replace
> tiles used by the old application.
Not sure on that one, I don't believe there really is anything
dealing with layout other than a table.
> 2) Dynamic attribute value generation: Something like the following
> you
> can do with JSP
>
> <input type="submit" value="${button. value}"/>
>
> How do I achieve this in Tapestry? Is there a component I can
> use to
> generate dynamic content as value for any arbitrary attribute of an
> HTML
> element?
The Any component is what you want, I believe:
<input jwcid="@Any" type="submit" value="ognl:value"/>
-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]