[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    RE: Using enums as parameters for components
From:       "Mark Stang" <mstang () pingidentity ! com>
Date:       2005-09-30 18:15:34
Message-ID: EB178A5944D70843A3B413BEB9373E467393 () ex2 ! corp ! pingidentity ! com
[Download RAW message or body]


k,
Sorry, forgot the source.  It was an enum defined in an interface that needed to be \
input into a .jwc.

thanks,

Mark


-----Original Message-----
From: Howard Lewis Ship [mailto:hlship@gmail.com]
Sent: Thu 9/29/2005 4:55 AM
To: Tapestry users
Subject: Re: Using enums as parameters for components
 
You forgot the primary rule ... inlcude the source!

My guess is that you should have the following:

@com.pingidentity.component.CertificateSelectionList@CertificateTypes

OGNL isn't as smart as Java, it needs help to know where the class
name ends and the field name begins.

On 9/27/05, Mark Stang <mstang@pingidentity.com> wrote:
> Hi,
> I am using 3.03 and trying to tell my .jwc that the value being passed in is an \
> enum. The enum is a static property of my component.
> 
> Here is my error:
> An exception has occurred.
> 
> You may continue by restarting the session.
> 
> org.apache.tapestry.ApplicationRuntimeException
> Unable to convert 'com.pingidentity.component.CertificateSelectionList.CertificateTypes' \
>                 to a property type.
> location:       context:/WEB-INF/component/CertificateSelectionList.jwc, line 14, \
> column 46 
> org.apache.tapestry.ApplicationRuntimeException
> Could not load class \
> com.pingidentity.component.CertificateSelectionList.CertificateTypes from \
> ContextLoader@12766459: \
> com.pingidentity.component.CertificateSelectionList.CertificateTypes 
> java.lang.ClassNotFoundException
> com.pingidentity.component.CertificateSelectionList.CertificateTypes
> Stack Trace:
> 
> * java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> * java.security.AccessController.doPrivileged(Native Method)
> * java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> * org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:227)
> * org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:195)
> * java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> 
> Thoughts?
> 
> thanks,
> 
> Mark
> 
> 


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic