You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Макаров Роман <ro...@kupivip.ru> on 2014/09/16 08:21:19 UTC
escape single quote character in parameter
How do I escape single quote character in parameter?
I.e. I need something like this ${someFunction('\'')}.
Re: escape single quote character in parameter
Posted by Lance Java <la...@googlemail.com>.
Tapestry's property expressions are deliberately simple to keep your
templates focused on layout, not logic. The less you do in a property
expression, the better.
Create another method / getter on your page / component and call that
instead. With tapestry's live class reloading it's quick to do.
On 16 Sep 2014 07:21, "Макаров Роман" <ro...@kupivip.ru> wrote:
> How do I escape single quote character in parameter?
> I.e. I need something like this ${someFunction('\'')}.
>
Re: escape single quote character in parameter
Posted by Chung Khanh Duy <ch...@gmail.com>.
Hi,
I think you can escape in Java code and pass value into javascript function
params. We have common-lang library to support that.
Thanks.
On Tue, Sep 16, 2014 at 1:21 PM, Макаров Роман <ro...@kupivip.ru>
wrote:
> How do I escape single quote character in parameter?
> I.e. I need something like this ${someFunction('\'')}.
>
--
Chung Khánh Duy
Project Support Manager
Formos