Hi All,
I have a field that I would like to have its options statically defined in
HTML and the selected option later setted in model. I'm using compound
property models. The natural way seems to add a DropDownChoice component.
But the problem is that DropDownChoice overwrites all options defined in
HTML. Is there a way to do this?
Eg.:
class Person
{
String gender;
}
<select wicket:id="gender">
<option>MALE</option>
<option>FEMAMALE</option>
</select>
PersonPage
{
// set Model
// ...
add( DropDownUseHtmlOptions( "gender" )
}