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 if you use an LDM for the list you are most likely better off
> using dataview
> 
> -igor
> 
> On Mon, May 11, 2009 at 5:48 PM, Chris <ch...@carlsoncentral.com> wrote:
>> I have a ListView that contains a TextField and Checkbox.  The model is
>> properly populating the components in populateItem(),  however onSubmit()
>> in
>> not seeing changes.  Do I have to do anything special to make changes to
>> FormComponents in a ListView make it back into the Model?
>>
>> add(new ListView("emails", new PropertyModel(model,
>> "personalContactInfo.email")) {
>>  protected void populateItem(ListItem item) {
>>   Email email = (Email) item.getModel().getObject();
>>   item.add(new TextField("email", new PropertyModel(email, "address")));
>>   item.add(new CheckBox("primary", new PropertyModel(email,
>> "isPrimary")));
>>  }
>> });
>> model is LoadableDetachableModel.
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/TextField-in-ListView-tp23494369p23494788.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to