You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mark Stang <ms...@pingidentity.com> on 2006/11/22 19:50:48 UTC

Help with ognl...

I am trying to create a 3.x parameter:

    <parameter name="maskValues" type="java.lang.Boolean" required="no" direction="in" default-value="ognl:@java.lang.Boolean@FALSE"/>

I was using a "boolean", but there is a bug in 3.x where sometimes it doesn't pass the value in, so I switched to a Boolean, but can't seem to come up with a valid default value.

Unable to parse expression 'ognl:@java.lang.Boolean@FALSE'.
binding: 	ExpressionBinding[Holder/createAdapterContract.$AttributeContractEditor ognl:@java.lang.Boolean@FALSE]
location: 	classpath:/com/pingidentity/component/common/AttributeContractEditor.jwc, line 17, column 135
 
org.apache.tapestry.ApplicationRuntimeException
Unable to parse expression 'ognl:@java.lang.Boolean@FALSE'.
 
ognl.ExpressionSyntaxException
Malformed OGNL expression: ognl:@java.lang.Boolean@FALSE

Thoughts?

thanks,

Mark

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity


RE: Help with ognl...

Posted by Mark Stang <ms...@pingidentity.com>.
Robert,
Good catch, I had "false" in there before, but it complained about trying to init a Boolean with a String and it couldn't convert it.  I copied/pasted from an HTML template and picked up the extra "ognl".  Once I removed that, it worked!

Thanks!

regards,

Mark

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-----Original Message-----
From: Robert Zeigler [mailto:robertz@scazdl.org]
Sent: Wed 11/22/2006 12:01 PM
To: Tapestry users
Subject: Re: Help with ognl...
 
the binding type for default-value is already ognl. So ognl is chocking
on the ognl: part. Try something like:
default-value="false"
:)

Robert


Mark Stang wrote:
> I am trying to create a 3.x parameter:
> 
>     <parameter name="maskValues" type="java.lang.Boolean" required="no" direction="in" default-value="ognl:@java.lang.Boolean@FALSE"/>
> 
> I was using a "boolean", but there is a bug in 3.x where sometimes it doesn't pass the value in, so I switched to a Boolean, but can't seem to come up with a valid default value.
> 
> Unable to parse expression 'ognl:@java.lang.Boolean@FALSE'.
> binding: 	ExpressionBinding[Holder/createAdapterContract.$AttributeContractEditor ognl:@java.lang.Boolean@FALSE]
> location: 	classpath:/com/pingidentity/component/common/AttributeContractEditor.jwc, line 17, column 135
>  
> org.apache.tapestry.ApplicationRuntimeException
> Unable to parse expression 'ognl:@java.lang.Boolean@FALSE'.
>  
> ognl.ExpressionSyntaxException
> Malformed OGNL expression: ognl:@java.lang.Boolean@FALSE
> 
> Thoughts?
> 
> thanks,
> 
> Mark
> 
> Mark J. Stang
> Senior Engineer/Architect
> office: +1 303.468.2900
> mobile: +1 303.507.2833
> Ping Identity
> 
> 


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



Re: Help with ognl...

Posted by Robert Zeigler <ro...@scazdl.org>.
the binding type for default-value is already ognl. So ognl is chocking
on the ognl: part. Try something like:
default-value="false"
:)

Robert


Mark Stang wrote:
> I am trying to create a 3.x parameter:
> 
>     <parameter name="maskValues" type="java.lang.Boolean" required="no" direction="in" default-value="ognl:@java.lang.Boolean@FALSE"/>
> 
> I was using a "boolean", but there is a bug in 3.x where sometimes it doesn't pass the value in, so I switched to a Boolean, but can't seem to come up with a valid default value.
> 
> Unable to parse expression 'ognl:@java.lang.Boolean@FALSE'.
> binding: 	ExpressionBinding[Holder/createAdapterContract.$AttributeContractEditor ognl:@java.lang.Boolean@FALSE]
> location: 	classpath:/com/pingidentity/component/common/AttributeContractEditor.jwc, line 17, column 135
>  
> org.apache.tapestry.ApplicationRuntimeException
> Unable to parse expression 'ognl:@java.lang.Boolean@FALSE'.
>  
> ognl.ExpressionSyntaxException
> Malformed OGNL expression: ognl:@java.lang.Boolean@FALSE
> 
> Thoughts?
> 
> thanks,
> 
> Mark
> 
> Mark J. Stang
> Senior Engineer/Architect
> office: +1 303.468.2900
> mobile: +1 303.507.2833
> Ping Identity
> 
> 


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