[html-formfu] new cpan releases
Octavian Râsnita
orasnita at gmail.com
Wed Nov 25 20:26:06 GMT 2009
Sounds great!
Thank you.
Octavian
----- Original Message -----
From: "Carl Franks" <fireartist at gmail.com>
To: "HTML FormFu" <html-formfu at lists.scsys.co.uk>
Sent: Wednesday, November 25, 2009 9:46 PM
Subject: [html-formfu] new cpan releases
> I've pushed a few more cpan releases out.
>
> The biggest change is to Catalyst::Controller::HTML::FormFu.
> You can create specially-named Catalyst actions that will only be
> called under certain circumstances.
> I've been using this in production for a few months now, and am really
> happy with how it works - it lets you get rid of the typical `if
> ($form->submitted_and_valid)` checks, and makes for
> easier-to-understand code.
> See the docs for all the supported suffixes.
> An example:
>
> sub edit : Chained('group') : PathPart : Args(0) : FormConfig {
> }
>
> sub edit_FORM_VALID {
> my ( $self, $c ) = @_;
>
> my $form = $c->stash->{form};
> my $group = $c->stash->{group};
>
> $form->model->update( $group );
>
> $c->response->redirect( $c->uri_for( '/group', $group->id ) );
> }
>
> sub edit_FORM_NOT_SUBMITTED {
> my ( $self, $c ) = @_;
>
> my $form = $c->stash->{form};
> my $group = $c->stash->{group};
>
> $form->model->default_values( $group );
> }
>
>
> HTML-FormFu 0.05002
>
> - Fix handling of counter_name in nested-repeatables.
>
> - Element::reCAPTCHA new constraint_args() method to pass options to
> the
> automatically-created Constraint::reCAPTCHA.
>
> - other bug fixes and doc fixes
>
> HTML-FormFu-Model-DBIC 0.05003
>
> - New 'link_values' and 'additive' options for multi-value fields for
> many-to-many relationships.
>
> - Doc updates.
>
> Catalyst-Controller-HTML-FormFu 0.06000
>
> - MultiForm actions now also always stash $multi->current_form
> to $c->stash->{form}.
> (key-name configurable via 'form_stash' config option).
>
> - New method suffixes such as "_FORM_VALID", "_FORM_SUBMITTED" to allow
> blocks of code that will only be run under certain circumstances.
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
More information about the HTML-FormFu
mailing list