2 Replies Latest reply on Mar 25, 2009 7:34 AM by Steffen Grimm

    MethodNotFoundException with ajaxSupport

    Steffen Grimm Newbie


      Richfaces version: 3.3.0
      Jboss 4.2.2 with SUN JSF 1.2

      I added a <a4j:support event="onRowClick"> to my rich:datatable the problem is that the action method is not invoked, I get a MethodNotFoundException. The strange thing is, that the very same method can be called via a commandLink nested in the table.: see example:

      <rich:dataTable id="myTable"
      width="100%" value="#{SearchBean.list}"
      var="dto" >
      <a4j:support event="onRowClick" immediate="true" actionListener="#{MyBean.myMethod}">
      <f:param name="id" value="#{dto.key}"/>
      <f:param name="version" value="#{dto.version}"/>
      <f:facet name="header">
      <h:outputText value="objektkey"/>
      <h:commandLink action="#{MyBean.myMethod}"
      immediate="true" >
      <f:param name="id" value="#{dto.key}"/>
      <f:param name="version" value="#{dto.version}"/>
       <h:outputLabel value="#{dto.okey}" />

      I already played with the ajaxSingle attribute: if it is set to "true" then lifecycle is processed in the backend but the method is not called. If it is set to "false" then I get the MethodNotFoundException.

      Does anyone have an idea? Help would really be apreciated, as I really can't figure out the error.

      Regards Stevo