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/17 00:27:24 UTC

EnumPropertySelectionModel - Tapestry 3.x

Does anyone have one that is available that doesn't use a resource bundle?

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


Help with ognl...

Posted by Mark Stang <ms...@pingidentity.com>.
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: EnumPropertySelectionModel - Tapestry 3.x

Posted by Jesse Kuhnert <jk...@gmail.com>.
http://tapestry.apache.org/tapestry4.1/apidocs/index.html

(notice the javadocs show you the source as well if you click on the class
name)

On 11/16/06, Mark Stang <ms...@pingidentity.com> wrote:
>
> Does anyone have one that is available that doesn't use a resource bundle?
>
> Mark J. Stang
> Senior Engineer/Architect
> office: +1 303.468.2900
> mobile: +1 303.507.2833
> Ping Identity
>
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com