[html-formfu] nested params branch

Jonas Alves jonas.alves at gmail.com
Sun Oct 28 13:55:57 GMT 2007


On 28/10/2007, Carl Franks <fireartist at gmail.com> wrote:
>
> On 28/10/2007, Jonas Alves <jonas.alves at gmail.com> wrote:
> > On 26/10/2007, Carl Franks <fireartist at gmail.com> wrote:
> > >
> > > You don't need to use Catalyst::Plugin::NestedParams - it shouldn't
> > > interfere - but it's unnecessary.
> > > - If you're not using Catalyst, don't use CGI::Expand, as this deletes
> > > the original " foo.bar" param names, which will break HTML::FormFu.
> > >
> >
> > Hi Carl,
> > If the dotted parameters are required then it wont work with
> > DBIC::Validation or with data coming from a JSON request. It is possible
> to
> > make it work without them? If it is much work maybe Hash::Flatten may
> help.
>
> If you set $form->nested_subscript(1), the fields will be generated
> with "foo[bar]" names, rather than "foo.bar" - this should solve the
> DBIC problem.
>
> What's the problem with JSON? (and which JSON modules)?
>
> Carl
>

There's no problem at all with JSON modules. What I want to say is that
sometimes I want to validate a JSON structure with FormFu, and that
structure doesn't has dot parameters. It's a structure similar to what you
get with CGI::Expand. I think FormFu should handle this cases too.

-- =

Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20071028/be=
bb0631/attachment.htm


More information about the HTML-FormFu mailing list