Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4223

Wrong Ajax form submit with wicket-1.418 and IBM WebSphere Portal 6.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.20
    • 1.4.20, 1.5.4
    • wicket
    • Apache Wicket 1.4.18
      IBM WebSphere Portal 6.1

    Description

      Recently, when we were developing an application for IBM WebSphere Portal 6.1 (JSR286 Portlet) using Wicket 1.4.18, we had problems with forms that use AjaxButton component for submitting.

      After some investigations, we realized that the problem was on the javascript side (wicket-ajax.js). The url encoded by IBM WebSphere Portal 6.1 has the following pattern:

      /wps/myportal/!ut/p/c5/_very_very_long_string_ended_with_a_slash/

      and when wicket-ajax.js do the submit, builds the following url

      /wps/myportal/!ut/p/c5/_very_very_long_string_ended_with_a_slash/&wicket:ajax=true

      As you can see, this is an invalid URL: after the / must be an ? not an &

      Attachments

        1. wicket-1.4.x-wicket-ajax.js.patch
          0.6 kB
          José Antonio Matute

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            matutet José Antonio Matute
            Votes:
            6 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: