2007/4/10, David Avendasora <[EMAIL PROTECTED]>:
That's the conclusion I've come to. So how do you submit multiple instances of one class to a form without having to click submit for every instance? Is it impossible?
I'm sorry I wasn't very awaked today: <WOForm> <WOSubmitButton action=scheduleOrderItem> <WORepetition list=openOrderItems, item=aOrderItem> <WOString value=aOrderItem.Order.DueDate>,<WOString value= aOrderItem.Part.PartName>,<WOString value=aOrderItem.orderQuantity><WOTextField value=quantityToSchedule> </WORepitition> </WOForm> you cannot bind to a single mathod an potentially illimited number of WOTextField, you need to add an attribute to you aOrderItem Model and bind it <WOTextField value=aOrderItem.quantityToSchedule> then when you submit the form you'll find inside EVERY your repetition objects method quantityToSchedule(), the value you insert inside the WOTextField. this is the first Idea I get, but probably there are other way to do this, I think my idea is realy easy, so, if you want to try... On Apr 10, 2007, at 9:51 AM, Daniele Corti wrote:
wait, I've just remember: aOrderItem is the item bind in the WORepetition? if so, it will be null, when clicking Submit button, because the submit button is outside the WORepetition (oh, well I think iit works in that way...) > >
-- Daniele Corti AIM: S0CR4TE5 Messenger: [EMAIL PROTECTED]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
