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
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
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
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
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)}:
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
6 matches
Mail list logo