1 Reply Latest reply on May 27, 2008 1:29 PM by ssilvert

    Issue with richClient.ajaxSubmit(

    rakeshmr

      Hi,

      I am currenlty facing an issue with the jsfunit, when I try to submit an ajax rich faces component from my jsfunit test case, its not giving the proper result always(means not sbmiting the button).

      testcase contains
      richClient.ajaxSubmit("editButton");

      richClient is an instance of org.jboss.jsfunit.richfaces.RichFacesClient

      the page contains below code
      <rich:dataTable id="Table1"
      value="#{bean.do}" var="newVar" width="100%" columnClasses="bigColumn, smallColumn">

      <rich:column>
      <f:facet name="header">
      <h:outputText value="#{session.do2}" />
      </f:facet>
      <a4j:commandButton id="editButton" value="#{session.edit}"
      action="#{session.do3}" reRender="Table1"/>

      </rich:column>
      </rich:dataTable>

        • 1. Re: Issue with richClient.ajaxSubmit(
          ssilvert

          'session' is an implicit object in JSF. It resolves to externalContext.getSession(). In a non-portlet environment, this will give you an instance of the HttpSession.

          So when JSF tries to resolve #{session.do3}, it will try to invoke HttpSession.do3(). Since there is no do3 method on the HttpSession, you will get an error.

          I assume that you will get the same error whether you use JSFUnit or run the application by hand from the browser?

          Stan