2 Replies Latest reply on Dec 12, 2007 9:24 AM by Leandro Severino

    JBoss + Facelets + Ajax + bpcatalog blueprint

    Leandro Severino Newbie

      Hi,

      I have a JEE project with:

      * JBoss 4.2
      * Facelets 1.1.12
      * AjaxSupport of blueprint catalog.

      My project made in Netbeans 6.0 IDE.

      I have a page reportEventos.xhtml:

      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:bp="http://java.sun.com/blueprints/ui/14"
       lang="pt-br"
       jsfc="ui:composition"
       template="/WEB-INF/templates/system.xhtml">
      
       <bp:autoComplete size="20" maxlength="100" id="nomeElemento"
       completionMethod="#{reportEventosController.autoElemento}"
       value="#{reportEventosController.nomeElemento}"
       required="true"/>
      
      


      And my ManagedBean:

      public void autoElemento(FacesContext context, String prefix,
       CompletionResult result) {
       String[] names =
       new String[] { "Jack", "James", "Igor", "John", "Jim", "Indiana",
       "Irvin", "Leo", "Lenny", "Leonard", "Lou", "Lubby",
       "Matt", "Matthew", "Milton" };
       Arrays.sort(names);
       AutoCompleteUtilities.addMatchingItems(names, prefix, result);
       }
      


      The libs in classpath of project:

      bp-ui-14.jar
      bpcatalog_utilities.jar
      commons-io-1.2.jar
      commons-lang-2.1.jar
      commons-logging-1.1.jar
      jdom.jar
      jsf-facelets.jar
      rome-0.8.jar
      rome-fetcher-0.7.jar
      shale-remoting.jar
      tlddoc.jar
      + the libs of facelets ${libs.FaceletsUtils.classpath}:
      


      The deploy works fine, but when I access the page with a <bp:autocomplete> I receive this error:

      javax.el.ELException: /reportEventos.xhtml: Property 'autoElemento' not found on type com.digitel.controller.ReportEventosController
       at com.sun.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:53)
       at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
       at com.sun.facelets.compiler.UILeaf.encodeAll(UILeaf.java:149)
       at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
       at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
       at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
       at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
       at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:571)
       at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at com.digitel.servlet.AutenticationFilter.doFilter(AutenticationFilter.java:34)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at com.digitel.servlet.MessageFilter.doFilter(MessageFilter.java:36)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:619)
      


      Any idea ?,
      Please help-me !!!