4 Replies Latest reply on May 21, 2008 11:25 AM by ilya_shaikovsky

    Ajax not firing

    novdeeps

      Hi All,

      I have a text box with required field in JSF and an ajax Command link to populate a values in rich model panel.
      The problem is after entering the required fields in JSF only the ajax request is getting fired. Otherwise it is not getting fired as it is being the required field.

      Can anyone suggest me how to fire the ajax request even without entering the required fields.

      <h:inputText required="true" value="#{accessBean.Firstame}" id="firstname" maxlength="100" />
      <a4j:commandLink value="Click Here" immediate="true" ajaxSingle="true" action="#{populateDetails.showTeamMembers}" oncomplete="Richfaces.showModalPanel('companyUserPanel1')" reRender="companyTeamform">
      </a4j:commandLink>


      Thanks in Advance,
      Deepthi

        • 1. Re: Ajax not firing
          ilya_shaikovsky

          What does you mean under "doesn't not getting fired"?? Did you checked in firebug console? Or just action doesn't fired? Do you have messages on the page?

          • 2. Re: Ajax not firing
            novdeeps

            A mean after entering the required fields only the action method in commanLink is called. If we don't fill any required fileds then the action method is not called. There is no error showing in Firebug console.

            • 3. Re: Ajax not firing
              moldovan

              Hy!

              Is the commandLink only for population of the modalPanel and does it has no connection with your required field?
              In this way you can set immediate="true" to skip the validation of the form-values and show the modalPanel!

              • 4. Re: Ajax not firing
                ilya_shaikovsky

                And in general why did you expect that cation will be performed? Did you believe that this ok for standard JSF components? ;)