You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Kemkes, Andreas" <AK...@MainPointSystems.com> on 2005/04/19 01:46:57 UTC

: ApplicationRuntimeException

I would like to use a public static member class as the type for a
property-specification, but the following
org.apache.tapestry.ApplicationRuntimeException is thrown: Unable to
convert 'a.public.static.member.class' to a property type.  The class
extends commons enum.  Is there any constraints that I should be aware
of?
 
Also, what is the OGNL syntax for specifying an initial-value that is a
static member of that same class?
 
Any help is much appreciated.
 
Andreas
 

Re: : ApplicationRuntimeException

Posted by Thomas Meier <th...@fastmail.fm>.
Oh btw, the 'type' element in the property-specification doesn't take 
ognl expressions. It just takes plain old classes as far as I know

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


Re: : ApplicationRuntimeException

Posted by Thomas Meier <th...@fastmail.fm>.
If you want to access static member in OGNL you use the expression 
@myPackage.MyClass@MY_STATIC_MEMBER
But this applies only to variables not classes.

If I understand you correct you want to use an internal class as a type 
in a property specification. I'm not sure if that works in Tapestry but 
in Java you would usually use OuterClass$InnerClass for this
So you'd use something like
<property-specification name="blah" 
type="com.myPackage.MyClass$MyInnerClass"/>

Cheers
Tom

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