On 1/19/06, Dan Jacob <[EMAIL PROTECTED]> wrote:
>
> I can think of one possible case: you have a shopping cart form
> consisting of a variable number of TextField widgets for the quantity
> of each item in your form. Each widget requires the Int validator. How
> would this be handled with stateless forms and widgets ?

Actually, stateless widgets are nice here. Basically, you have a
widget that handles the repeating field. You provide it with a
TextField with the Int validator and the repeating field widget will
take the input and pass the values one by one through the textfield's
validator. Because the widgets are stateless, not only can they be
easily reused for each request, they can be easily reused in repeating
situations like this.

Kevin

--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

Reply via email to