[prev in list] [next in list] [prev in thread] [next in thread]
List: tapestry-user
Subject: Temporary objects in OGNL
From: Kaspar Fischer <fischerk () inf ! ethz ! ch>
Date: 2007-12-29 13:53:29
Message-ID: 9FB2EF70-E459-4E15-AA97-8380B670F895 () inf ! ethz ! ch
[Download RAW message or body]
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic