You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "rohan.kalyan" <rk...@indygo.in> on 2008/04/29 14:43:04 UTC

#this variable

Hi all,
we are using ognl-2.7.3-20080211.212409-1.jar in our application and we
recently shifted from tapestry 4.0.2 to 4.1.5.
we were facing a problem while using ognl for complex expression. (Unable to
parse OGNL expression) Exception was occuring and in some forums we came to
know about the use of '#this' variable for complex expressions in ognl.

The expression is given bellow
value="ognl:(currentCl.primary.subStatus)?(tP.treat.fee - tP.primaryIF) :
0.0)"
this expression was working good in ognl-2.6.7
later while migrating to 4.1.5 we used latest ognl snapshot and it failed to
parse the complex expression.

but
value="ognl:(currentCl.primary.subStatus)?(#this.tP.treat.fee -
#this.tP.primaryIF) : 0.0)"
worked in updated ognl.

After using '#this' it worked but, still have a doubt.
what is the value in '#this' or what does it refer to?
why should we use '#this'?

thanks in advance
rohan kalyan
-- 
View this message in context: http://www.nabble.com/-this-variable-tp16959585p16959585.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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