On 10/12/2007, Kalman Kiss <[EMAIL PROTECTED]> wrote:
> Hi,
>
> im using FormFu through Catalyst::Controller::HTML::FormFu and i get an
> exception, when i include the following date field
> spec in the yml file:
>
>   - type: Date
>     name: birthdate
>     label: 'Születési idő'
>     day:
>       - prefix: "- Nap -"
>     month:
>       - prefix: "- Hónap -"
>     year:
>       - prefix: "- Év -"
>     auto_inflate: 1

The methods day() month() and year() expect hashrefs, not arrayrefs,
so that should be:

 - type: Date
   name: birthdate
   label: 'Születési idő'
   day:
     prefix: "- Nap -"
   month:
     prefix: "- Hónap -"
   year:
     prefix: "- Év -"
   auto_inflate: 1

btw, this isn't really anything to do with catalyst, so should
probably have been posted to the formfu list
([EMAIL PROTECTED])

Cheers,
Carl
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to