Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-1598

Ajax forms do not get submitted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.2
    • 2.0.6
    • None
    • None
    • Windows xp, IE 6
      Custom build from S2 trunk as of today

    Description

      Simplef page:

      <html>
      <head>
      <s:head theme="ajax"/>
      </head>
      <body>
      <s:form id="szukajOsobeWniosek" action="/my/index" theme="ajax" method="POST">
      <s:hidden name="showSearchForm"/>
      <s:textfield name="aaaaa" label="Aaaaa"/>
      <s:textfield name="name" label="Name"/>
      <s:submit cssClass="btn" value="Szukaj"/>
      </s:form>
      </body>
      </html>

      It renders simple HTML with a form and a button.
      Pressing the button does not submit the page.
      When I submit it under FF I can see that some scripts could not be fetched (404):

      GET http://localhost:8080/esu/struts/dojo/struts/widget/DatePicker.js
      GET http://localhost:8080/esu/struts/dojo/struts/widget.js
      GET http://localhost:8080/esu/struts/dojo/struts/__package__.js
      GET http://localhost:8080/esu/struts/dojo/struts.js
      GET http://localhost:8080/esu/struts/dojo/__package__.js
      GET http://localhost:8080/esu/struts/dojo/src/widget/html/Tooltip.js
      GET http://localhost:8080/esu/struts/dojo/src/widget/html.js
      GET http://localhost:8080/esu/struts/dojo/src/widget.js
      GET http://localhost:8080/esu/struts/dojo/src/__package__.js
      GET http://localhost:8080/esu/struts/dojo/src.js
      GET http://localhost:8080/esu/struts/dojo/__package__.js
      Could not load 'dojo.widget.html.Tooltip'; last tried '_package_.js'
      [Break on this error] throw _13||Error(_12);
      dojo.js (line 94)
      Could not load 'struts.widget.DatePicker'; last tried '_package_.js'
      [Break on this error] null

      Attachments

        1. index.jsp
          3 kB
          Dariusz Wojtas

        Issue Links

          Activity

            People

              mrdon Donald J. Brown
              dwojtas@gmail.com Dariusz Wojtas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: