Hi,

I get below error when I tried to use a ognl expression: 
${ognl:mySessionWrapper.hashcode()}
I included t5 contrib and components and ognl 2.6.9 jars before running 
application. ${ognl:mySessionWrapper} works fine though..


-----------------
SEVERE: Processing of request failed with uncaught exception: Render queue 
error in Expansion[OgnlBinding[mySessionWrapper.hashcode()]]: Method "hashcode" 
failed for object [EMAIL PROTECTED]
org.apache.tapestry.internal.services.RenderQueueException: Render queue error 
in Expansion[OgnlBinding[mySessionWrapper.hashcode()]]: Method "hashcode" 
failed for object [EMAIL PROTECTED] [at 
classpath:com/myc/tapestry/components/_welcome.tml, line 2, column 116]
        at 
org.apache.tapestry.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:75)
        at 
org.apache.tapestry.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:84)
---------------

Thanks in advance,
Hari

--- On Fri, 5/16/08, Toby Hobson <[EMAIL PROTECTED]> wrote:

> From: Toby Hobson <[EMAIL PROTECTED]>
> Subject: Re: how to use ognl in tapestry 5
> To: "Tapestry users" <users@tapestry.apache.org>
> Date: Friday, May 16, 2008, 8:32 PM
> 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]


      


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

Reply via email to