title: Conflict between Omnifaces cdi param and JSF 2.3
body: <p>My web app encountered a problem with Omnifaces cdi param after upgrading the server from tomee plume 7 to tomee plume 8.  I tested with a bare bone webapp and confirmed this.</p>
  
  <p>My bean:</p>
  
  <pre><code>@javax.faces.view.ViewScoped
  @javax.inject.Named
  public class Bean2 implements java.io.Serializable {
    @javax.inject.Inject @org.omnifaces.cdi.Param
    private String tag;
    private String tag2;
  
    @javax.annotation.PostConstruct
    public void init() {
      if (getTag() == null || getTag().length()==0) {
          setTag2("None injected");
      }
      else 
          setTag2(getTag() + " injected");
      // Getters and setters
  
  }
  </code></pre>
  
  <p>My JSF view:</p>
  
  <pre><code>&lt;h:body&gt;
      Tag: &lt;h:outputText value="#{bean2.tag}" /&gt;
      &lt;br/&gt;
      &lt;p:inputText readonly="true" value="#{bean2.tag2}"/&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p>I tried <a href="http://localhost:8080/test/inject2.jsf?tag=ABC" rel="nofollow noreferrer">http://localhost:8080/test/inject2.jsf?tag=ABC</a> and it works once only.  Subsequent trials give:</p>
  
  <pre><code>java.lang.IllegalArgumentException: Unknown property tag of class com.mycompany.Bean2
  at org.apache.bval.jsr.job.ValidateProperty$FindDescriptor.handleProperty(ValidateProperty.java:216)
  at org.apache.bval.jsr.job.ValidateProperty$WalkGraph.handleProperty(ValidateProperty.java:312)
  Caused by: javax.el.ELException: Error reading [tag] on type [com.mycompany.Bean2$$OwbNormalScopeProxy0]
  at javax.el.BeanELResolver.getValue(BeanELResolver.java:98)
  at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELR...
  </code></pre>
  
  <p>If I restart the server, it also works once only.</p>
  
  <p>My environment Java: openjdk version "1.8.0_191", Primefaces 6.1, Omnifaces 2.6.9.  I know not many people use TomEE but for info, TomEE plume 7 is based on Tomcat 8, Mojarra JSF 2.2 whereas TomEE plume 8 is based on Tomcat 9, Mojarra JSF 2.3.  There are of course more differences but the test web app is so simple that what affects me should be Tomcat and JSF version only, with the SAME jar dropped in.</p>