tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psy...@t-online.de (John Meredith)
Subject Re: Please help the brain dead
Date Thu, 08 Jan 2004 21:47:27 GMT
Hi,

You need to prefix your condition with "ognl:" ie.

<span jwcid="@Conditional" condition='ognl:page.getProperty("foo")'>

Hope this helps,

  John

On Thu, 2004-01-08 at 22:45, Byrne, Steven wrote:
> I want to have a fixed border component that all my pages will share. 
> 
> In this border component, I would like to have some conditional content
> that appears if the .page file defines a particular property.
> 
> When I try 
> 
>      <span jwcid="@Conditional" condition='page.getProperty("foo")' >
>          some text
>      </span>
> 
> I get exceptions of the form:
> -------------------------------------
> org.apache.tapestry.BindingException
> Unable to resolve expression 'getProperty("foo")' for
> com.dorado.sbb.ExpClass$Enhance_529@1055dab[Home].
> binding: 	ExpressionBinding[Home getProperty("foo")]
> location: 	context:/WEB-INF/Border.html, line 7
>  
> ognl.MethodFailedException
> Method "getProperty" failed for object
> com.dorado.sbb.ExpClass$Enhance_529@1055dab[Home]
>  
> org.apache.tapestry.ApplicationRuntimeException
> Unable to read expression '<parsed expression>' of
> com.dorado.sbb.ExpClass$Enhance_529@1055dab[Home].
>  
> ognl.NoSuchPropertyException
> foo
> target: 	com.dorado.sbb.ExpClass$Enhance_529@1055dab[Home]
> -------------------------------------
> 
> Is the "getProperty" method special somehow and not resolving to
> Ipage.getProperty(String)?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
-- 
John Meredith <psynix@t-online.de>


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


Mime
View raw message