2 Replies Latest reply on Oct 29, 2007 6:22 AM by Jaime Martin

    problems with suggestionbox

    Jaime Martin Apprentice

      hi,
      I´m trying to test suggestion box component after having a look at this websites:
      http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf?c=suggestionBox
      http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/RichFacesComponentsLibrary.html


      The page code is this

      <h:panelGrid columns="3" border="0" style="border: 1px solid black;">
       <f:verbatim>Suggestion Box</f:verbatim>
      
       <f:facet name="header">
       <f:verbatim>Input With Suggestion Feature</f:verbatim>
       </f:facet>
      
      
       <f:verbatim> </f:verbatim>
      
       <h:inputText value="#{suggestionBox.property}" id="suggest" />
      
       <rich:suggestionbox for="suggest" suggestionAction="#{suggestionBox.autocomplete}"
       var="result" fetchValue="#{result.text}">
       <h:column>
       <h:outputText value="#{result.text}" />
       </h:column>
       </rich:suggestionbox>
       </h:panelGrid>


      The suggestionBox.autocomplete method code is the following, for the test I always assign a set of values:

      public List autocomplete(Object suggest) {
       ArrayList result = new ArrayList();
       result.add("Abb");
       result.add("Accc");
       result.add("Addd");
       result.add("Aeeeee");
       return result;
       }


      When I execute it all, after typing something in the inputText the following error appears:

      13:08:24,531 ERROR [DebugPageHandler] redirecting to debug page
      javax.faces.el.PropertyNotFoundException: /RstReportEditSugBox.xhtml @35,44 value="#{result.text}": Bean: java.lang.String, property: text
      at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:58)
      at javax.faces.component.UIOutput.getValue(UIOutput.java:75)
      at org.apache.myfaces.renderkit.RendererUtils.getStringValue(RendererUtils.java:225)
      at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.renderOutput(HtmlTextRendererBase.java:65)
      at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:53)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
      at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:286)
      at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
      at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
      at org.ajax4jsf.framework.renderer.compiler.ChildElement.encode(ChildElement.java:54)
      at org.ajax4jsf.framework.renderer.compiler.ElementBase.encode(ElementBase.java:104)
      at org.ajax4jsf.framework.renderer.compiler.ElementBase.encode(ElementBase.java:104)
      at org.ajax4jsf.framework.renderer.compiler.ChildrensElement.encode(ChildrensElement.java:125)
      at org.ajax4jsf.framework.renderer.compiler.ElementBase.encode(ElementBase.java:104)
      at org.ajax4jsf.framework.renderer.compiler.ElementBase.encode(ElementBase.java:104)
      at org.ajax4jsf.framework.renderer.compiler.ChildrensElement.encode(ChildrensElement.java:125)
      at org.ajax4jsf.framework.renderer.compiler.ElementBase.encode(ElementBase.java:104)
      at org.ajax4jsf.framework.renderer.compiler.ElementBase.encode(ElementBase.java:104)
      at org.ajax4jsf.framework.renderer.compiler.ElementBase.encode(ElementBase.java:104)
      at org.ajax4jsf.framework.renderer.compiler.RootElement.encode(RootElement.java:64)
      at org.richfaces.renderkit.html.SuggestionBoxRenderer.encodeChildren(SuggestionBoxRenderer.java:257)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:319)
      at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:282)
      at org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:159)
      at org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:97)
      at org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:150)
      at org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:97)
      at org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:150)
      at org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:97)
      at org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:150)
      at org.ajax4jsf.framework.renderer.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:125)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:549)
      at org.ajax4jsf.framework.ajax.AjaxContext.renderAjaxRegion(AjaxContext.java:307)
      at org.ajax4jsf.framework.ajax.AjaxContext$2.invoke(AjaxContext.java:222)
      at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnComponent(JsfOneOneInvoker.java:75)
      at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnComponent(AjaxContext.java:178)
      at org.ajax4jsf.framework.ajax.AjaxContext.renderSubmittedAjaxRegion(AjaxContext.java:236)
      at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:256)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
      at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53)
      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)


      Any idea?
      thanks in advance!