Re: MyFaces 2.0.0 - Problem of rendering Enum

2010-05-28 Thread John Wu
Hi Jakob, Suggestions: 1. Exception message: The value 'CardNumber' (type java.lang.String) is not an instance of the Enum type. 2. In the case the value is a String, check if it equals to one of Enum Constants' name, then ... Cheers, John Wu Jakob Korherr wrote: Hi John, On my opinion

Re: MyFaces 2.0.0 - Problem of rendering Enum

2010-05-28 Thread John Wu
If 2.) is to be incorporated in the impl, the original exception message is then appropriate. John Wu wrote: Hi Jakob, Suggestions: 1. Exception message: The value 'CardNumber' (type java.lang.String) is not an instance of the Enum type. 2. In the case the value is a String, check

Re: MyFaces 2.0.0 - Problem of rendering Enum

2010-05-27 Thread John Wu
return the specified value if it's an instance of String. So, my suggestion after further investigation is to change EnumConverter.getAsString(..) to follow that convention, that is, to simply return the specified value if it's an instance of String. Cheers, John Wu Jakob Korherr wrote: Hi John

MyFaces 2.0.0 - Problem of rendering Enum

2010-05-26 Thread John Wu
I'd say the issue exist in org.apache.myfaces.shared_impl.renderkit.getConvertedStringValue(FacesContext context, UIComponent component, Converter converter, Object value). In the case of rendering a selectRadio and the underlying model property type is an Enum, this method is called with the

MyFaces 2.0.0 doest not fully support EL 2.2 method invocation

2010-05-25 Thread John Wu
A simple EL 2.2 method invocation #{helloWorldController.doSomething(helloWorldModel)} fails with following exception: javax.faces.el.MethodNotFoundException: javax.el.MethodNotFoundException: /helloWorld.xhtml at line 15 and column 85 action=#{helloWorldController.doSomething(helloWorldModel)}:

Re: MyFaces 2.0.0 doest not fully support EL 2.2 method invocation

2010-05-25 Thread John Wu
java.lang.Object.class (or null) for any scoped attribute. I don't think that's correct. John Wu Bruno Aranda wrote: I use EL 2.2 and MyFaces 2.0 without problems, so it must be a Tomcat configuration issue. I use jetty... the maven jetty plugin configured like this: plugin