Code:

private DropDownChoice<SomeModel> reportsChoice;
final ChoiceRenderer<String> renderer = new ChoiceRenderer<String>("value",
"key");
List<Report> reports = getAllReports();
final RapportChoices reportsChoices = new RapportChoices(reports);
this.reportsChoice = new DropDownChoice<SomeModel>("rapportChoice",
reportsChoices, renderer);


@SuppressWarnings("unchecked")
        @Override
        protected void onSubmit() {
                String reportName= 
this.reportsChoice.getDefaultModelObjectAsString();
//reportName value comes as empty string.

It used to work with Wicket 6.13 now that i have upgraded to 6.19.0 it is
giving problem.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dropdown-choice-with-wicket-6-19-0-tp4669757.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to