Thanks, the stack trace in my logs basically told me the same thing. I added a converter for that type and everything works great.
JB -----Original Message----- From: Andrew Robinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 4:07 PM To: MyFaces Discussion Subject: Re: Injecting Java 5 Enums into a managed bean I use converters to convert strings to the enum and back. You can create your own custom EL resolver, but I am not sure if one is already written and available. -Andrew On 8/8/06, Baker,Jonathan <[EMAIL PROTECTED]> wrote: > > > > I am trying to inject an instance of an enumeration class into one of > my ViewControllers. Spring has the capability to define a > PropertyEditor so that you can pass Strings as values to beans, and > the PropertyEditor will convert to the correct object, but I do not > seee a way to accomplish the same thing in my faces-config.xml. When > I tried to define my ViewController in my spring applicationContext.xml file jsf couldn't find it. > > I did some research and it looks like if you are using jsf 1.2 you can > define a el-resolver that can use a special EnumManagedBean class to > expose enumerations to your jsp, and I assume that the ELResolver > would work on the faces-config file as well, but we are using myfaces > with Shale, and it only implements the jsf 1.1 spec. Is there an > equivalent to the el-resolver tag in jsf 1.1? > > > JB

