Re: [Rife-users] array/multiple beans from form submission

2006-06-15 Thread Eddy Young
Emmanuel Okyere wrote: [snipped] You are pretty much on the money with what the discussion is about; it's not possible to 'generate' a form in the manner you mention here, but you can sort of 'simulate' that; what I am doing on the petstore app for instance, requires that every cart item be

Re: [Rife-users] array/multiple beans from form submission

2006-05-29 Thread Emmanuel Okyere
Hi Geert, Actually, what you can do if you really want to isolate and componentize the handling of these beans, you can use embedded elements and provide it with a data object during processEmbeddedElement (which will be each bean). This is only supported in 1.5 though. Indeed, I am using

Re: [Rife-users] array/multiple beans from form submission

2006-05-29 Thread Emmanuel Okyere
Geert, the embedded elements and do validation on those. Would have been nicer if we could do a getSubmissionBeans(BeanType.class) call in this regard I don't really follow, how would that work? there's already a getSubmissionBean(BeanType.class) implementation... which prepulates a bean

Re: [Rife-users] array/multiple beans from form submission

2006-05-29 Thread Geert Bevin
Hmm that shouldn't be too hard to add. Maybe you could take a crack at it ;-) On 29 May 2006, at 11:48, Emmanuel Okyere wrote: Geert, the embedded elements and do validation on those. Would have been nicer if we could do a getSubmissionBeans(BeanType.class) call in this regard I

Re: [Rife-users] array/multiple beans from form submission

2006-05-29 Thread Fred Baube
Quoting Geert Bevin: there's already a getSubmissionBean(BeanType.class) implementation... which prepulates a bean with param values... I was just thinking aloud on if we could have a getSubmissionBeans(BeanType.class) imp where a ListBeanType is returned instead, as happens to be what,

Re: [Rife-users] array/multiple beans from form submission

2006-05-29 Thread Fred Baube
Quoting Geert Bevin: Hmm that shouldn't be too hard to add. Maybe you could take a crack at it ;-) Then there really _would_ be bidirectional templates ! And there's plenty of Javascript out there for clicking to add a new row to a table. Then table/list editing could be done 100%

Re: [Rife-users] array/multiple beans from form submission

2006-05-29 Thread Emmanuel Okyere
Fred, Hmm that shouldn't be too hard to add. Maybe you could take a crack at it ;-) Then there really _would_ be bidirectional templates ! And there's plenty of Javascript out there for clicking to add a new row to a table. Then table/list editing could be done 100% locally before

Re: [Rife-users] array/multiple beans from form submission

2006-05-28 Thread Geert Bevin
Hi Emmanuel, 1// how do i locate which bean a particular quantity maps to when the form is submitted; 1.1// changing the form method to a GET, with 2 items in the cart (one with qty 1, the other with 4), i get a submission uri that looks like:

Re: [Rife-users] array/multiple beans from form submission

2006-05-28 Thread Emmanuel Okyere
Geert, As always, thx for the quick response; 1// how do i locate which bean a particular quantity maps to when the form is submitted; 1.1// changing the form method to a GET, with 2 items in the cart (one with qty 1, the other with 4), i get a submission uri that looks like: