You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by avchavan <av...@yahoo.co.in> on 2015/02/25 11:39:22 UTC
Dropdown choice with wicket 6.19.0
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Dropdown choice with wicket 6.19.0
Posted by avchavan <av...@yahoo.co.in>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Dropdown choice with wicket 6.19.0
Posted by Sven Meier <sv...@meiers.net>.
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<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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org