On 15 Feb 2009, at 11:30, Michal Charemza wrote:
>  In both cases the same thing happens: the form shows up, with the  
> user-inputed data, but no errors are shown in the form (and no  
> class="error" is shown on any of the input elements).

Some more information. I can 'manually' show errors, by having the  
following in the template:

if (array_key_exists('errors',$t))
foreach ($t['errors'] as $field => $e)
foreach ($e['messages'] as $error)
print "In field <strong>$field</strong>: $error.<br/>";

and the following in the Error view:

$vm = $this->container->getValidationManager();
$errors = $vm->getErrors();
$this->setAttribute('errors', $errors);

So the validation manager does know about the errors. It seems the  
somehow the FPF doesn't know about them, or at least is not  
transferring them to the form...

Michal.

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to