Wicket
  1. Wicket
  2. WICKET-4223

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.20
    • Fix Version/s: 1.4.20, 1.5.4
    • Component/s: wicket
    • Labels:
    • Environment:
      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 &

        Activity

        Hide
        Martin Grigorov added a comment -

        Fixed.
        Thanks!

        The fix for 6.0 will be included in another (bigger) commit

        Show
        Martin Grigorov added a comment - Fixed. Thanks! The fix for 6.0 will be included in another (bigger) commit
        Hide
        José Antonio Matute added a comment -

        Patch to solve this problem is attached to this issue

        Show
        José Antonio Matute added a comment - Patch to solve this problem is attached to this issue

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            José Antonio Matute
          • Votes:
            6 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development