Tapestry 5 does not use ognl by default, there is a long running discussion on 
this list about this. T5 uses the "prop:" binding which will look for a 
property on your page or component class which must be either a javabean 
property or a no-arguments method. So it is not possible to call a method with 
arguments (or do other ognl stuff) from a template.

HOWEVER ... there is an ognl extension available for Tapestry, see 
http://code.google.com/p/tapestry5-components/

I hope this helps

Toby

----- Original Message ----
From: hari ks <[EMAIL PROTECTED]>
To: users@tapestry.apache.org
Sent: Friday, 16 May, 2008 3:30:32 PM
Subject: how to use ognl in tapestry 5

hi,

   How to use ognl expression with methods arguments in tapestry 5? ( like 
inside <t:if > component). 
In tapestry 4 I had used ognl:myObj.callMyMeth('arg1')..

I got following exception while trying to call method :
Could not convert 'prop:mySessionWrapper.getAttribute('adminUserName')' into a 
component parameter binding: Class com.myc.tapestry.mdl.MySessionWrapper does 
not contain a property named 'getAttribute('adminUserName')' (within property 
expression 'mySessionWrapper.getAttribute('adminUserName')'). Available 
properties: class.


Thanks in advance,
Hari.


      


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Reply via email to