Beginner: Pre-select value on RadioChoice component using compound model

2010-04-24 Thread Alexandros Karypidis
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: RadioChoiceSex sexRadio = new RadioChoiceSex(profile.sex, Arrays .asList(Sex.values()));

Re: Beginner: Pre-select value on RadioChoice component using compound model

2010-04-24 Thread Igor Vaynberg
your profile object is null -igor On Sat, Apr 24, 2010 at 8:08 AM, Alexandros Karypidis akary...@yahoo.gr wrote: 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: