Simon Botting created WICKET-5596:
-------------------------------------
Summary: DropDownChoice#wantsOnSelectionChangedNotifications(T)
not being called on unmounted page
Key: WICKET-5596
URL: https://issues.apache.org/jira/browse/WICKET-5596
Project: Wicket
Issue Type: Bug
Affects Versions: 6.15.0, 6.14.0
Environment: Windows 7, Jetty, Wicket 6.14.0 & Wicket 6.15.0 Java 1.6
Reporter: Simon Botting
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
--
This message was sent by Atlassian JIRA
(v6.2#6252)