2 Replies Latest reply on Sep 12, 2011 5:52 PM by viajero

    method in entityQuery

    viajero
      Please I need know how I can call some method in EntityQuery from a Page

      I have this code

      public String getListadoRegiones() {
                      String descripcion = this.getRegion().getDescripcion() + "%";
                      Map<String, Object> parametros = new HashMap<String, Object>();
                      try {
                              String listaParametros = "Descripcion " + descripcion;
                              parametros.put("descripcion", descripcion);
                              parametros.put("parametros",listaParametros);
                              rb.crearArchivo("listadoRegiones", parametros, Constantes.RUTA_LISTADOS_FUENTES, Constantes.RUTA_LISTADOS_SERVIDOR,
                                              "Lista Regiones", "");
                      } catch (Exception e) {
                              e.printStackTrace();
                      }
                      return null;
              }

      In page

      <h:commandLink       id="pdf" value="PDF" action="#{reportesFulltime.listadoRegiones}"/>

      but when I click in the commandLink

      javax.el.PropertyNotFoundException: Property 'listadoRegiones' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_9
              at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:193)
              at javax.el.BeanELResolver$BeanProperties.access$400(BeanELResolver.java:170)
              at javax.el.BeanELResolver.property(BeanELResolver.java:279)
              at javax.el.BeanELResolver.getValue(BeanELResolver.java:60)


      I do something wrong please someone help me.