Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.2.3
-
None
-
Linux, Java 1.4
Description
Method DropDownChoice.onSelectionChanged is never called when testing a drop down by calling formTester.select("dropDownChoiceNotified", 0);
In my page:
form.add(new DropDownChoice("dropDownChoiceNotified", candidateChoices, bookChoiceRenderer) {
private static final long serialVersionUID = 1L;
protected boolean wantOnSelectionChangedNotifications()
protected void onSelectionChanged(Object arg0)
{ super.onSelectionChanged(arg0); throw new RuntimeException("notification "+arg0); }});
In my unit Test I do:
formTester.select("dropDownChoiceNotified", 0);
and the drop down component is not being notified.
It works fine when testing in a container though.