[web-devel] Yesod form composition

Greg Weber greg at gregweber.info
Thu Jun 16 21:16:57 CEST 2011


rails:
http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes
django: https://docs.djangoproject.com/en/dev/topics/forms/formsets/

I don't see why we can't have new helpers for generating and consuming a
list of forms that operate the same as now but just map over a list instead.
Django also shows techniques we might use to display the forms.

Greg Weber

On Thu, Jun 16, 2011 at 11:43 AM, Michael Snoyman <michael at snoyman.com>wrote:

> This is definitely something missing from the yesod-form API as is.
> I'm not quite sure how the API would look for this; has anyone given
> this some thought?
>
> On Wed, Jun 15, 2011 at 7:06 AM, Tyson Whitehead <twhitehead at gmail.com>
> wrote:
> > Hi All,
> >
> > I'm wanting to make a form for "[a]" by composing forms for "a" along
> with
> > added a delete options and a final add another option.
> >
> > Is there an accepted way to do this sort of thing?  It doesn't seem to me
> to
> > be a good fit for the applicative framework as it is not a fixed
> structure.
> >
> > Cheers!  -Tyson
> >
> > _______________________________________________
> > web-devel mailing list
> > web-devel at haskell.org
> > http://www.haskell.org/mailman/listinfo/web-devel
> >
> >
>
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20110616/432c5650/attachment-0001.htm>


More information about the web-devel mailing list