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

Make RestartResponseAtInterceptPageException with a SignIn-type page work correctly from AjaxFallbackLink

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.2.5
    • 1.3.5
    • wicket
    • None

    Description

      If you throw a new RestartResponseAtInterceptPageException from inside onClick in an AjaxFallbackLink, Wicket does the right thing in redirecting you to a SignIn page, but upon completing the sign-in, the continueToOriginalDestination() call continues to the Ajax response (which isn't particularly surprising).

      It might be nice to have magic added to make this work seamlessly and restart the onClick() somehow. It would be adequate to make the AjaxFallBackLink behave as though fallback had happened in this situation.

      A fairly simple workaround is to check in the Panel/Page to see if sign-in has happened already and use a normal Link in the case that it hasn't.

      Attachments

        1. 20070104-wicket-1.x-RestartResponseAtOriginalDestination
          3 kB
          Jean-Baptiste Quenot
        2. 20070104-wicket-1.x-RestartResponseAtOriginalDestination.txt
          3 kB
          Jean-Baptiste Quenot
        3. RestartResponseAtOriginalDestination.java
          2 kB
          Jean-Baptiste Quenot

        Activity

          People

            ivaynberg Igor Vaynberg
            spatula Nick Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: