updateField not working with long character

vanthanm
2007-07-05
2013-01-31
  • vanthanm

    vanthanm - 2007-07-05

    Hi all, i have a problem which might be an ajax tag bug.

    Indeed I use the following ajaxtag :

    <ajax:updateField
      baseUrl="${pageContext.request.contextPath}/ServiceRelatedManagerDept.view"
      source="itmanager,dept"
      target="managercache1,managercache2"
      action="action"
      parameters="itmanager={itmanager},dept={dept}"
      parser="new ResponseXmlParser()"
      preFunction="showSpinner"
      postFunction="displayManagDept"
      />

    My target (2 input fields) is correctly filled when the data are not important, however when the data is big the target is empty.
    My servlet "ServiceRelatedManagerDept.view" however works well with the good results.

    Does the tag updateField accept big data??

    Thanks for your help.

     
    • Jens Kapitza

      Jens Kapitza - 2007-07-05

      set       doPost in your tag
      forgot to document it (version 1.3 should have it)

      problem is just IE default using GET and than DATA are truncated

      -->

      <ajax:updateField
      baseUrl="${pageContext.request.contextPath}/ServiceRelatedManagerDept.view"
      source="itmanager,dept"
      ...
      doPost="true"
      ....
      />

       
    • vanthanm

      vanthanm - 2007-07-06

      Hi thanks for your answer but it still does not work. Indeed, with the following tag,

      <ajax:updateField
        baseUrl="${pageContext.request.contextPath}/ServiceRelatedManagerDept.view"
        source="itmanager,dept"
        target="managercache1,managercache2"
        action="action"
        doPost="true"
        parameters="itmanager={itmanager},dept={dept}"
        parser="new ResponseXmlParser()"
        preFunction="showSpinner"
        postFunction="displayManagDept"
        />

      I got this error :

      ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/pentaho].[PS] - Servlet.service() for servlet PS threw exception
      org.apache.jasper.JasperException: /JSPReports/PS/PS.jsp(458,0) Attribute doPost invalid for tag updateField according to TLD

      Thanks.
         

       
      • Jens Kapitza

        Jens Kapitza - 2007-07-06

        do you use version 1.3-beta-rc4 ?

         
        • vanthanm

          vanthanm - 2007-07-09

          Hi, no I use version 1.2. :(

           
          • Jens Kapitza

            Jens Kapitza - 2007-07-09

            change method from 'get' to 'post' search the tag in ajaxtags*.js

             
    • Yogesh

      Yogesh - 2009-06-15

      Hi vanthanm ,

      i have one problem please help me..
      i am using <ajax:UpdateField

      how to write ResponseXmlParser as i know default is ResponseHtmlParser..

      because when i am sending response using AjaxXmlBuilder
      browser gives me ResponseXmlParser is Undefined..

      please help..anyone...

      thanks in advance!

       

Log in to post a comment.