Thanks guys for the response.
Just to complete the thread...
Like you guys mentioned, yes it is possible, like Igor said if the form or
its children (DataView or any other related view) has the model (e.g.
CompoundPropertyModel) on the form objects, the model will be updated on
form submission and hence you will have all the fields on the page updated.
My requirement was to work with an existing ShoppingCart - so I had to
create transient POJO to hold form fields and on form submission take the
new values and pass it on to the ShoppingCart.
Pro-Wicket book has this covered in its CheckoutPage example (Chapter 3) in
case someone needs details.
igor.vaynberg wrote:
>
> if all your lineitems are in the same form then they will all be
> updated in bulk when the form is submitted.
>
> -igor
>
>
> On Thu, May 1, 2008 at 4:36 PM, Ritz123 <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I have a "simple" requirement to be able to display (textfield)
>> quantities
>> of each product in cart and then be able to globally update all the
>> quantities changed.
>>
>> Looked at the FormPage/Refreshing view example - it shows how to handle
>> items individually but not globally. This kind of thing was really
>> simple in
>> struts/jsp model, it seems difficult or atleast more complex in wicket.
>>
>> Any pointers on how to do a global update?
>>
>> Also related question on the FormPage.java (repeaters example).
>> ActionPanel
>> is getting contact
>> as the model (see below) but in the ActionPanel constructor, instead of
>> getting getModelObject() directly, its referenced using
>> getParent().getModelObject() - not sure why?
>>
>> item.add(new ActionPanel("actions", contact));
>> // FIXME use CompoundPropertyModel!
>> item.add(new TextField("id", new PropertyModel(contact, "id")));
>> --
>> View this message in context:
>> http://www.nabble.com/Bulk-form-field-edits---possible--tp16995780p16995780.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Bulk-form-field-edits---possible--tp16995780p17024369.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]