Have a look at

http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/varref.html

I tend to use complex ognl for rapid view development (dynamic reload).
After that, I move complex expressions into Java-code.

> -----Original Message-----
> From: Kaspar Fischer [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, December 29, 2007 2:53 PM
> To: Tapestry users
> Subject: Temporary objects in OGNL
> 
> Hi!
> 
> My Tapestry markup quite often contains repetitions like this:
> 
>   <span jwcid="@If"  
> condition="ognl:components.table.tableRow.getProperty('title')! 
> =null&&components.table.tableRow.getProperty('title').length()>0">
>    <span jwcid="@Insert"  
> value="ognl:components.table.tableRow.getProperty('title')"></span>
>   </span>
>   <span jwcid="@Else" key="untitled-document"/>
> 
> Is there an easy way to assign the result of a complicated 
> (and potentially
> expensive) OGNL expression to a temporary object and reuse this later?
> 
> Something like:
> 
>    <span jwcid="@Remember"  
> value="ognl:components.table.tableRow.getProperty('title')" 
> name="that">
>      <span jwcid="@If" condition="ognl:that!=null&&that.length()>0">
>        ...
> 
> Or is there another trick I've overseen?
> 
> Thanks,
> Kaspar
> 
> 
> ---------------------------------------------------------------------
> 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