myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Müllan" <bierbra...@gmail.com>
Subject Re: InputSuggestAjax: [...]NoSuchMethodError: [...]getActionUrl(Ljavax/faces/context/FacesContext;)Ljava/lang/String;
Date Wed, 13 Dec 2006 09:27:45 GMT
Hi,

just a typo? Using the UserBean in combination with getSuggestItems
should do the thing.

So use suggestedItemsMethod="#{UserBean.getSuggestItems}" instead of
suggestedItemsMethod="#{inputSuggestAjax.getSuggestItems}". Or is the
method also located inside the inputSuggestAjax bean?

Are you using facelets, client-side state saving?

cheers,

Gerald

On 12/13/06, Joey Corleon <vidaubannais@caramail.com> wrote:
>
>
> Hello,
>
> I tried really hard to use the InputSuggestAjax component (Tomahawk Sandbox) without
any success. I followed the explainations on the MyFaces webiste, even simply copied and past
the code I found there; But I keep receiving the same exception:
>
> 24645 [http-8080-Processor25] DEBUG org.apache.myfaces.shared_tomahawk.webapp.webxml.WebXmlParser
 - adding mapping for filter + MyFacesExtensionsFilter urlpattern = null
> 24645 [http-8080-Processor25] DEBUG org.apache.myfaces.shared_tomahawk.webapp.webxml.WebXmlParser
 - adding mapping for filter + MyFacesExtensionsFilter urlpattern = *.ifg
> 24645 [http-8080-Processor25] DEBUG org.apache.myfaces.shared_tomahawk.webapp.webxml.WebXmlParser
 - adding mapping for filter + MyFacesExtensionsFilter urlpattern = *jsp
> 24796 [http-8080-Processor25] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/flouzeWeb].[jsp]
 - "Servlet.service()" pour la servlet jsp a lancé une exception
> java.lang.NoSuchMethodError: org.apache.myfaces.custom.suggestajax.inputsuggestajax.InputSuggestAjaxRenderer.getActionUrl(Ljavax/faces/context/FacesContext;)Ljava/lang/String;
>     at org.apache.myfaces.custom.suggestajaxinputsuggestajax.InputSuggestAjaxRenderer.encodeEnd(InputSuggestAjaxRenderer.java:82)
>     at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
>     at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:349)
>     at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:253)
>     at org.apache.jsp.pages.login_jsp._jspx_meth_s_inputSuggestAjax_0(login_jsp.java:358)
>     at org.apache.jsp.pages.login_jsp._jspx_meth_h_form_0(login_jsp.java:213)
>     at org.apache.jsp.pages.login_jsp._jspx_meth_f_view_0(login_jsp.java:133)
>     at org.apache.jsp.pages.login_jsp._jspService(login_jsp.java:90)
>     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
>     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
>     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
>     at org.apache.catalina.core.ApplicationDispatcherforward(ApplicationDispatcher.java:301)
>     at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
>     at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
>     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.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:100)
>     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>     at orgapache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
>     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>     at org.apache.catalinacore.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>     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.coyotehttp11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>     at java.lang.Thread.run(Thread.java:595)
> 24806 [http-8080-Processor25] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/flouzeWeb].[Faces
Servlet]  - "Servlet.service()" pour la servlet Faces Servlet a généré une exception
> javax.faces.FacesException: org.apache.myfaces.custom.suggestajax.inputsuggestajax.InputSuggestAjaxRenderer.getActionUrl(Ljavax/faces/context/FacesContext;)Ljava/lang/String;
>     at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
>     at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
>     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.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:100)
>     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>     at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
>     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.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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>     at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.jasper.JasperException: org.apache.myfaces.custom.suggestajax.inputsuggestajax.InputSuggestAjaxRenderer.getActionUrl(Ljavax/faces/context/FacesContext;)Ljava/lang/String;
>     at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
>     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
>     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
>     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
>     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
>     at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
>     ... 23 more
>
> Here is the piece of code from my JSP:-
>
> <s:inputSuggestAjax suggestedItemsMethod="#{inputSuggestAjax.getSuggestItems}"   
                         value="#{UserBean.valueTest}"  charset="utf-8"/>
>
> and here are the methods from my UserBean:-
>
> [...]
> public List<String> getSuggestItems(String prefix)
>     {
>         List toBeReturned = new ArrayList();
>         toBeReturned.add("123");
>         toBeReturned.add("1234");
>         toBeReturned.add("12345");
>         toBeReturned.add("123456");
>         toBeReturned.add("1234567");
>         toBeReturned.add("12345678");
>         return toBeReturned;
>     }
>
>     public String getValueTest() {
>         return valueTest;
>     }
>
>     public void setValueTest(String valueTest) {
>         this.valueTest = valueTest;
>     }
> [...]
>
> Any help welcome! I am desprate to make it work ...
>
> Thanks:
>
>
>
>  Inscrivez-vous gratuitement sur meetic.fr et recevez une liste de 20 célibataires de
votre région.Meetic.fr



-- 
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message