Hi,
I'm using the RadioChoice component on a form with a
CompoundPropertyModel. I'd like the form to come up witn a specific
radio option selected. So I try:
RadioChoice<Sex> sexRadio = new RadioChoice<Sex>("profile.sex",
Arrays
.asList(Sex.values()));
sexRadio.setChoiceRenderer(new SexChoiceRenderer());
sexRadio.setDefaultModelObject(Sex.FEMALE);
But I get:
Caused by: java.lang.IllegalStateException: Attempt to set model object
on null model of component: profile.sex
at
org.apache.wicket.Component.setDefaultModelObject(Component.java:3033)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]