https://issues.apache.org/bugzilla/show_bug.cgi?id=52970
Bug #: 52970
Summary: MethodNotFoundException when using enum as one of
method arguments
Product: Tomcat 7
Version: 7.0.26
Platform: PC
Status: NEW
Severity: normal
Priority: P2
Component: Servlet & JSP API
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Consider this JSF view snippet:
----------------------------------------------------------------------
<h:form>
<h:commandButton value="submit" action="#{bean.submit('FOO')}" />
</h:form>
----------------------------------------------------------------------
And this JSF bean snippet:
----------------------------------------------------------------------
@ManagedBean
@RequestScoped
public class Bean {
public enum Type { FOO, BAR }
public void submit(Type type) {
System.out.println(type);
}
}
----------------------------------------------------------------------
This results in a javax.el.MethodNotFoundException. It works in Glassfish 3. EL
2.2 spec 1.18.6 tells that a string must be coerced to enum of type T.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]