[web-devel] Yesod Form

Dmitry Olshansky olshanskydr at gmail.com
Thu Nov 25 16:23:30 CET 2010


Well, I did it. But there are some loses...

Before I use GET method to submit and all fields were checked perfectly. Now
I use POST and they are didn't checked before post. After that now I have
two independent type conversions - automatically in Get and handly in
Post... From these points GET method looks more attractive.

Maybe it is possible to add *Maybe submit_button_name* into the result of
runFormGet?
Dima
2010/11/25 Michael Snoyman <michael at snoyman.com>

> On Thu, Nov 25, 2010 at 11:43 AM, Dmitry Olshansky
> <olshanskydr at gmail.com> wrote:
> > Hello all,
> >
> > can I handle a form with more than one button in Yesod?
> >
> > In this case pair (button_name, button_value) is sent to the server on
> > submit. Can I get it in some way?
>
> You can use the maybeStringInput function together with runFormPost'
> (notice the apostrophe) to get access to submissions without using the
> standard form setup. Depending on what you need, that may be
> sufficient.
>
> Michael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/web-devel/attachments/20101125/6e026ae1/attachment.html


More information about the web-devel mailing list