title: Unable to find method [someMethod] with [1] parameters
body: <p>I have a HIBERNATE DAOImpl with the following method, passing a variable as parameter..</p>
  
  <pre><code>  public List&lt;Oportunidad&gt; verParticipantes(String numeroOportunidad) throws DAOException {
      List&lt;Oportunidad&gt; lista = getHibernateTemplate().find("SELECT c.cliente FROM Oportunidad o ,OportunidadParticipante op,"
              + "Cliente c WHERE op.oportunidad=o.id and c.idCliente=op.cliente and o.numeroOportunidad=?",numeroOportunidad);
       return lista;
  }
  </code></pre>
  
  <p>and the ServiceImpl</p>
  
  <pre><code>public List&lt;Oportunidad&gt; verParticipantes(String numeroOportunidad)throws DAOException {    
      return getOportunidadDao().verParticipantes(numeroOportunidad);
  }
  </code></pre>
  
  <p>this interfaces by using, in both. 
  These compile and run with junit doing a test. Goog, very good</p>
  
  <hr>
  
  <p>The problem is, when I want to pass the parameter from a selectOneListboxt implemented a JSF primefaces</p>
  
  <p>code ManagedBean:</p>
  
  <pre><code>  public String getVerParticipantes(String numeroOportunidad) throws DAOException{
      Oportunidad o = new Oportunidad();
      o.setNumeroOportunidad(numeroOportunidad);
        verParticipantes.addAll(getOportunidadService().verParticipantes(numeroOportunidad));
      return  "envioCotizacion.xhtml";
  }
  </code></pre>
  
  <p>JSF code (. xhtml):</p>
  
  <pre><code>&lt;p:selectOneListbox id="listaCliente" value="#{clienteMB.cliente}"  style="width:26%; height:90%;  position:absolute; top:10%; left:12%;"&gt;   
                      &lt;f:selectItems value='#{oportunidadMB.verParticipantes("prueba")}'/&gt; 
                      &lt;!--  &lt;f:param name="numeroOportunidad" value="prueba" /&gt;--&gt;
                      &lt;p:ajax id="numeroOportunidad" listener='#{oportunidadMB.verParticipantes("prueba")}'&gt;&lt;/p:ajax&gt; 
                  &lt;/p:selectOneListbox&gt;
  </code></pre>
  
  <hr>
  
  <p>error screen:::::::::</p>
  
  <pre><code>javax.el.MethodNotFoundException: Unable to find method [verParticipantes] with [1] parameters
      at javax.el.BeanELResolver.invoke(BeanELResolver.java:444)
      at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:161)
      at org.apache.el.parser.AstValue.getValue(AstValue.java:173)
      at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:185)
      at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
      at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
      at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)
      at javax.faces.component.UISelectItems.getValue(UISelectItems.java:129)
      at org.primefaces.renderkit.InputRenderer.getSelectItems(InputRenderer.java:55)
      at org.primefaces.component.selectonelistbox.SelectOneListboxRenderer.encodeMarkup(SelectOneListboxRenderer.java:49)
      at org.primefaces.component.selectonelistbox.SelectOneListboxRenderer.encodeEnd(SelectOneListboxRenderer.java:42)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:924)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:176)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:894)
      at org.primefaces.renderkit.CoreRenderer.renderChild(CoreRenderer.java:70)
      at org.primefaces.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:57)
      at org.primefaces.component.layout.LayoutUnitRenderer.encodeEnd(LayoutUnitRenderer.java:51)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:924)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:443)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
  </code></pre>
  
  <hr>
  
  <p>Help me plis...no longer to do with this error.</p>