Hi,

I am new about Mojolicious and I need please some help ; it's about form 
validation.

This form, in a separate file, contains :

%= form_for protected => begin
....
<br>Z1:<br>
   %= text_field 'za', id => 'za'
  <br>
....
  %= submit_button 'OK'
% end

and my action contains :

use Mojolicious::Validator;
use Mojolicious::Validator::Validation;
...

    my $validator  = Mojolicious::Validator->new;
    my $validation = Mojolicious::Validator::Validation->new(validator => 
$validator);
    $validation = $validation->required('za');

    if (not $validation->has_error) {
...

Impossible to enter the " if " even if the field " za " is full 
($self->param('za') works).
If I delete the " validation = $validation->required('za'); " line, then I 
enter the if.

I don't understand ; can someone help me ?

Thanks,

amka   :)


-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to