What do you mean when you say that you want to "globally update"
multiple textfields? Do you mean that you want to add 1 to each
quantity? Or do you want to query the current quantities from a
database? Essentially you just want to update their model objects'
values and refresh the page.
- Scott
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]