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
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
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
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'
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
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'
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
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'
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
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
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
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?
>
> --
12 matches
Mail list logo