I think that won't work for double quotes, should you need that. That was the issue I had originally, I think.

Norman Franke
ASD, Inc.

On Jan 10, 2008, at 4:41 PM, Zheng, Xiahong wrote:

It works!!! Thanks a bunch.

-----Original Message-----
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 10, 2008 4:33 PM
To: Tapestry users
Subject: Re: T4: Newbie's questions

\'

On Jan 10, 2008 4:29 PM, Zheng, Xiahong <[EMAIL PROTECTED]> wrote:
How to escape single quote inside my string constant?


-----Original Message-----
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 10, 2008 4:19 PM
To: Tapestry users
Subject: Re: T4: Newbie's questions

<input jwcid="@Any" stringValue="ognl:'myStringValue' +
page.user.name"
/>

On Jan 10, 2008 3:52 PM, Zheng, Xiahong <[EMAIL PROTECTED]> wrote:
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]





--
Jesse Kuhnert
Tapestry / OGNL / Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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





--
Jesse Kuhnert
Tapestry / OGNL / Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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