JavaTraveler
2018-06-25 12:26:42 UTC
Hello everyone, I wish to get rid of the "choose one" option. Wich is
equivalent to null, if i'm not mistaken.
ddlSociete = new DropDownChoice<SocieteDto>("societe", new
PropertyModel<SocieteDto>(pointageMasseSearchDto, "societe"), new
LoadableDetachableModel<List<SocieteDto>>() {
@Override
protected List<SocieteDto> load() {
return societes;
}
}, new ChoiceRenderer<SocieteDto>("numeroLibelle", "numero"));
I was thinking about imposing a default value to replace the null one with
one from my List.
I tried everything i could find but nothing worked. It can't be that
complicated, can it ?
THanks in advance for your answers.
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
equivalent to null, if i'm not mistaken.
ddlSociete = new DropDownChoice<SocieteDto>("societe", new
PropertyModel<SocieteDto>(pointageMasseSearchDto, "societe"), new
LoadableDetachableModel<List<SocieteDto>>() {
@Override
protected List<SocieteDto> load() {
return societes;
}
}, new ChoiceRenderer<SocieteDto>("numeroLibelle", "numero"));
I was thinking about imposing a default value to replace the null one with
one from my List.
I tried everything i could find but nothing worked. It can't be that
complicated, can it ?
THanks in advance for your answers.
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org