Hi Andrew / JB,

Could you guys put an entry in the Wiki on how this Converter should
work?

It would be much appreciated.

Many thanks,

Fintan

-----Original Message-----
From: Baker,Jonathan [mailto:[EMAIL PROTECTED] 
Sent: 08 August 2006 22:24
To: MyFaces Discussion
Subject: RE: Injecting Java 5 Enums into a managed bean


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


* ** *** ** * ** *** ** * ** *** ** * 
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed. 
Any views or opinions presented are solely those of the author, and do not 
necessarily  represent those of ESB. 
If you have received this email in error please notify the sender. 
 
Although ESB scans e-mail and attachments for viruses, it does not guarantee 
that either are virus-free and accepts no liability for any damage sustained 
as a result of viruses. 
 
* ** *** ** * ** *** ** * ** *** ** *

Reply via email to