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

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

    Details

    • Type: Wish
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.2.5
    • Fix Version/s: 1.3.5
    • Component/s: wicket
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: