Re: Temporary objects in OGNL

2008-01-03 Thread Marcus Schulte
Oh, sorry, I didn't realize, you want to cache results between different OGNL expressions. Different ognl expressions only share the page as common context. So you'd need sth. like: Page: ... public abstract Object getThat(); ... Template: ... xyz="ognl: that=components.table.tableRow.ge

Re: Temporary objects in OGNL

2008-01-03 Thread Kaspar Fischer
On 31.12.2007, at 09:07, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: Have a look at http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/varref.html I actually tried this before: only outputs "foo" once. Shouldn't it emit this string twice? I tend to use complex ognl for r

RE: Temporary objects in OGNL

2007-12-31 Thread Marcus.Schulte
TECTED] > 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: > >condition="ognl:components.table.tableRow.getProperty('title')!

Temporary objects in OGNL

2007-12-29 Thread Kaspar Fischer
Hi! My Tapestry markup quite often contains repetitions like this: condition="ognl:components.table.tableRow.getProperty('title')! =null&&components.table.tableRow.getProperty('title').length()>0"> value="ognl:components.table.tableRow.getProperty('title')"> Is there an easy way to ass