Re: TextField in ListView

2009-05-11 Thread Oblivian
Also do you have any idea why my "language" ListMultipleChoice is not defaulting to the selected values. languages is List basicDemographicInfo.language is also List Thanks again. igor.vaynberg wrote: > > you need to chan your models > > IModel email = item.getModel(); >item.add(new Text

Re: TextField in ListView

2009-05-11 Thread Oblivian
Such a simple fix. Thanks, it works! igor.vaynberg wrote: > > you need to chan your models > > IModel email = item.getModel(); >item.add(new TextField("email", new PropertyModel(email, "address"))); >item.add(new CheckBox("primary", new PropertyModel(email, > "isPrimary"))); > > also

Re: TextField in ListView

2009-05-11 Thread Oblivian
public class BasicInfoForm extends Form { private static final Log log = LogFactory.getLog(BasicInfoForm.class); @SpringBean(name = "spinnDao") private ISpinnDao spinnDao; @SpringBean(name = "phrInfoDao") private IPhrInfoDao phrInf

Re: DropDownChoice ID's

2009-05-11 Thread Oblivian
to look up the list element to put into the model. > > jk > > On Sun, May 10, 2009 at 08:08:30AM -0700, Oblivian wrote: >> >> After changing genders from List to List, I'm seeing the >> opposite behaviour. The values are coming across as ['m','f'

Re: DropDownChoice ID's

2009-05-10 Thread Oblivian
quot; or "Female" accordingly > } > } > > You shouldn't care about the ID value. The default provided by > ChoiceRenderer should be fine. > > jk > > On Sat, May 09, 2009 at 05:52:29PM -0700, Oblivian wrote: >> >> basicDemographicInfo.ge

Re: DropDownChoice ID's

2009-05-09 Thread Oblivian
basicDemographicInfo.gender is a String and genders is List John Krasnay wrote: > > What is the type of the "gender" property of BasicDemographicInfo? > > jk > > On Sat, May 09, 2009 at 12:39:58PM -0700, Oblivian wrote: >> >> Not sure what I'

Re: DropDownChoice ID's

2009-05-09 Thread Oblivian
basicDemographicInfo.gender is a String and genders is List Oblivian wrote: > > List test = Arrays.asList(new String[] { "A", "B", "C" }); > add(new DropDownChoice("test", test)); > > How can I make the Id's match the V

Re: DropDownChoice ID's

2009-05-09 Thread Oblivian
basicDemographicInfo.gender is a String and genders is List John Krasnay wrote: > > What is the type of the "gender" property of BasicDemographicInfo? > > jk > > On Sat, May 09, 2009 at 12:39:58PM -0700, Oblivian wrote: >> >> Not sure what I'

Re: DropDownChoice ID's

2009-05-09 Thread Oblivian
iewing the HTML, the id's are correct "m" and "f", however in onSubmit, I get this. model.getBasicDemographicInfo().getGender() = com.spinn.sdk.db.model.gen...@30ea3e3c Oblivian wrote: > > List test = Arrays.asList(new String[] { "A", "B", &q

Re: DropDownChoice ID's

2009-05-08 Thread Oblivian
Thanks. Oblivian wrote: > > List test = Arrays.asList(new String[] { "A", "B", "C" }); > add(new DropDownChoice("test", test)); > > How can I make the Id's match the Values? There coming through as > 1,2,3. I've tried

Re: DropDownChoice ID's

2009-05-08 Thread Oblivian
object.toString(); } } Oblivian wrote: > > List test = Arrays.asList(new String[] { "A", "B", "C" }); > add(new DropDownChoice("test", test)); > > How can I make the Id's match the Values? There coming through as > 1,2,3. I

Re: Forms loading multiple times

2009-05-08 Thread Oblivian
I mean the DAO that populates my model, runs 2 times. Oblivian wrote: > > I'm having a issue with forms loading multiple times.. This is really > screwing up ChoiceRenderer. Has anyone else experienced this? > > --