You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Scott F. Walter" <sc...@vivare.com> on 2005/05/25 17:02:59 UTC

Escape ognl expression

I have the following ognl expression and I want to embed a single quote 
into my expression and not have it end the expression:
 <a jwcid="@Any" href="ognl:'javascript:renameFile('' + 
currentFile.filename + '');'">

How can I escape the ognl expression to embed a single quote?

thanks,

scott
-- 

Scott F. Walter 	Scott F. Walter
Principal Consultant
Vivare, Inc.

E: scott.walter@vivare.com
E: scott@scottwalter.com
Visit scottwalter.com <http://scottwalter.com> --Point.  Click.  Explore!




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Escape ognl expression

Posted by "Scott F. Walter" <sc...@scottwalter.com>.
Howard Lewis Ship wrote:

>Yes, make it a specified component.
>
>HTML: 
> <a jwcid="renameLink"> ... </a>
>
>in page/component spec:
>
><component id="renameLink" type="Any">
>  <binding name="href">
>    "javascript:renameFile('" + currentFile.filename + "');"
>  </binding>
></component>
>
>On 5/25/05, Scott F. Walter <sc...@scottwalter.com> wrote:
>  
>
>>Jamie Orchard-Hays wrote:
>>
>>    
>>
>>>have you tried \'  ?
>>>
>>>
>>>
>>>Scott F. Walter wrote:
>>>
>>>      
>>>
>>>>I have the following ognl expression and I want to embed a single
>>>>quote into my expression and not have it end the expression:
>>>><a jwcid="@Any" href="ognl:'javascript:renameFile('' +
>>>>currentFile.filename + '');'">
>>>>
>>>>How can I escape the ognl expression to embed a single quote?
>>>>
>>>>thanks,
>>>>
>>>>scott
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>
>>>      
>>>
>>Yes, I tried that, with no success.  Any other ideas?
>>
>>--
>>
>>Scott F. Walter         Scott F. Walter
>>Principal Consultant
>>Vivare, Inc.
>>
>>E: scott.walter@vivare.com
>>E: scott@scottwalter.com
>>Visit scottwalter.com <http://scottwalter.com> --Point.  Click.  Explore!
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>    
>>
>
>
>  
>
Thanks for the response!  I know your extremely busy with Tapestry 4.0.  
thanks

-- 

Scott F. Walter 	Scott F. Walter
Principal Consultant
Vivare, Inc.

E: scott.walter@vivare.com
E: scott@scottwalter.com
Visit scottwalter.com <http://scottwalter.com> --Point.  Click.  Explore!




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Escape ognl expression

Posted by Howard Lewis Ship <hl...@gmail.com>.
Yes, make it a specified component.

HTML: 
 <a jwcid="renameLink"> ... </a>

in page/component spec:

<component id="renameLink" type="Any">
  <binding name="href">
    "javascript:renameFile('" + currentFile.filename + "');"
  </binding>
</component>

On 5/25/05, Scott F. Walter <sc...@scottwalter.com> wrote:
> Jamie Orchard-Hays wrote:
> 
> > have you tried \'  ?
> >
> >
> >
> > Scott F. Walter wrote:
> >
> >> I have the following ognl expression and I want to embed a single
> >> quote into my expression and not have it end the expression:
> >> <a jwcid="@Any" href="ognl:'javascript:renameFile('' +
> >> currentFile.filename + '');'">
> >>
> >> How can I escape the ognl expression to embed a single quote?
> >>
> >> thanks,
> >>
> >> scott
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> Yes, I tried that, with no success.  Any other ideas?
> 
> --
> 
> Scott F. Walter         Scott F. Walter
> Principal Consultant
> Vivare, Inc.
> 
> E: scott.walter@vivare.com
> E: scott@scottwalter.com
> Visit scottwalter.com <http://scottwalter.com> --Point.  Click.  Explore!
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Escape ognl expression

Posted by "Scott F. Walter" <sc...@scottwalter.com>.
Jamie Orchard-Hays wrote:

> have you tried \'  ?
>
>
>
> Scott F. Walter wrote:
>
>> I have the following ognl expression and I want to embed a single 
>> quote into my expression and not have it end the expression:
>> <a jwcid="@Any" href="ognl:'javascript:renameFile('' + 
>> currentFile.filename + '');'">
>>
>> How can I escape the ognl expression to embed a single quote?
>>
>> thanks,
>>
>> scott
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
Yes, I tried that, with no success.  Any other ideas?

-- 

Scott F. Walter 	Scott F. Walter
Principal Consultant
Vivare, Inc.

E: scott.walter@vivare.com
E: scott@scottwalter.com
Visit scottwalter.com <http://scottwalter.com> --Point.  Click.  Explore!




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Escape ognl expression

Posted by Jamie Orchard-Hays <ja...@dang.com>.
have you tried \'  ?



Scott F. Walter wrote:
> I have the following ognl expression and I want to embed a single quote 
> into my expression and not have it end the expression:
> <a jwcid="@Any" href="ognl:'javascript:renameFile('' + 
> currentFile.filename + '');'">
> 
> How can I escape the ognl expression to embed a single quote?
> 
> thanks,
> 
> scott

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org