title: Passing enum value as parameter to bean method from JSF pages fail after migrating to tomcat
body: <p>I recently migrated my JSF app(using primefaces) from glassfish 3.1 to tomcat7 server. Previously passing the enum value as string to managed bean methods through <code>actionlistener</code>  attribute worked(without the need for a converter to convert string to enum) but now it fails with  <code>javax.el.MethodNotFoundException</code>. </p>
  
  <p>JSF page: </p>
  
  <blockquote>
  <pre><code>&lt;h:form&gt;
     &lt;h:outputLabel value="Title"/&gt;&lt;br/&gt;
     &lt;p:inputText value="#{lobController.current.title}"/&gt;
  
     &lt;p:commandButton action="#{lobController.create('CAR')}" value="Post"/&gt;
  &lt;/h:form&gt;
  </code></pre>
  </blockquote>
  
  <p>Mangaged bean method             </p>
  
  <blockquote>
  <pre><code>public void create(Type type) {
    ...
  }
  </code></pre>
  </blockquote>
  
  <p>Log messages:</p>
  
  <blockquote>
    <p>javax.el.MethodNotFoundException: /_newLOB.xhtml @85,111
    action="#{lobController.create('CAR')}": Method not found:
    d432.xontrollers.LOBController@15b2cec.create(java.lang.String)   at
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:110)
      at javax.faces.component.UICommand.broadcast(UICommand.java:315)    at
    javax.faces.component.UIData.broadcast(UIData.java:1093)  at
    javax.faces.component.UIData.broadcast(UIData.java:1093)  at
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
      at
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
      at
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)    at
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)   at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
      at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at
    org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
      at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)</p>
  </blockquote>
  
  <hr>
  
  <h2>Edit</h2>
  
  <p>This starts working if I change the managed bean method as follow:</p>
  
  <blockquote>
  <pre><code>public void create(String type) {
       Type type = Type.valueOf(type);
       ...
  }
  </code></pre>
  </blockquote>
  
  <hr>
  
  <p><strong>Using Primefaces 3.1 with JSF 2.1.6 on Tomcat 7.0.14</strong></p>