Re: Dropdown choice with wicket 6.19.0
Ahh...got it working. There was a problem with Form.java that we were using, i had forgotten to update that file. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dropdown-choice-with-wicket-6-19-0-tp4669757p4669760.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Dropdown choice with wicket 6.19.0
Hi, what model is your dropDownChoice working on? Are you using a CompoundPropertyModel? A quickstart would help identifying the problem. Regards Sven On 25.02.2015 11:39, avchavan wrote: Code: private DropDownChoice reportsChoice; final ChoiceRenderer renderer = new ChoiceRenderer("value", "key"); List reports = getAllReports(); final RapportChoices reportsChoices = new RapportChoices(reports); this.reportsChoice = new DropDownChoice("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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Dropdown choice with wicket 6.19.0
Code: private DropDownChoice reportsChoice; final ChoiceRenderer renderer = new ChoiceRenderer("value", "key"); List reports = getAllReports(); final RapportChoices reportsChoices = new RapportChoices(reports); this.reportsChoice = new DropDownChoice("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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org