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

problem with browser back-button and links after ajax replace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0-beta1
    • 1.3.0-beta1
    • wicket
    • None

    Description

      I'm having this problem when I back-button to a page with a panel that replaced itself with another panel containing a link - and re-try the link:

      WicketMessage: Method onLinkClicked of interface org.apache.wicket.markup.html.link.ILinkListener targeted at component [MarkupContainer [Component id = link, page = test.HomePage, path = 0:panel:link.FirstPanel$1, isVisible = true, isVersioned = true]] threw an exception

      Root cause:

      java.lang.IllegalArgumentException: object is not an instance of declaring class
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:186)
      at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents (ListenerInterfaceRequestTarget.java:73)
      at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:90)
      at org.apache.wicket.RequestCycle.processEventsAndRespond (RequestCycle.java:975)
      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1048)
      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1127)
      at org.apache.wicket.RequestCycle.request(RequestCycle.java :489)
      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248)

      I'm attaching a quickstart.

      Attachments

        1. test-quickstart.zip
          9 kB
          Peter Thomas

        Activity

          People

            knopp Matej Knopp
            ptrthomas Peter Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: