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

DropDownChoice#wantsOnSelectionChangedNotifications(T) not being called on unmounted page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.14.0, 7.0.0-M1, 6.15.0
    • 6.16.0, 7.0.0-M2
    • None
    • None
    • Windows 7, Jetty, Wicket 6.14.0 & Wicket 6.15.0 Java 1.6

    Description

      I posted on nabble about this here:
      http://apache-wicket.1842946.n4.nabble.com/wantsOnSelectionChangedNotifications-RadioGroup-Radio-vs-DropDownChoice-td4665927.html

      Essentially on an unmounted bookmarkable page (one that you access directly through: wicket/bookmarkable/package.name.ClassName)
      the DropDownChoice#wantsOnSelectionChangedNotifications(T) does not seem to be called.

      Having looked at the internals a bit, it seems that the onchange handler is not setting a variable that resolves properly to any ListenerInterfaceRequestHandler
      e.g.:
      the onchange is:

      document.getElementById('form6_hf_0').value='../../page?2-1.IOnChangeListener-form-vegetable';document.getElementById('form6').submit();

      but should be something like:
      document.getElementById('form6_hf_0').value='./wicket_issue_4.FormPage?2-1.IOnChangeListener-form-vegetable';document.getElementById('form6').submit();

      That's just my initial thought, I'm no expert.

      Please look at the posting on nabble // Wicket Users Forum for more contextual information

      Attachments

        1. wicket_issue_4.tar.gz
          21 kB
          Simon Botting

        Activity

          People

            bitstorm Andrea Del Bene
            sbotting Simon Botting
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: