W dniu 15 października 2008 09:38 użytkownik Kris Wallsmith
<[EMAIL PROTECTED]> napisał:
>
> Hi Łukasz,
>
> If I understand correctly, you want your post validator to be aware of
> what fields have thrown validation errors? I believe there are two
> ways to do this:
>
> 1. Create a custom validator class that accepts the form's
> validatorSchema as a constructor argument.
> 2. Use sfValidatorCallback as your post validator and direct it to a
> method on your form. This method will then have access to the form's
> validatorSchema via $this
>
> Someone else may know of another way...
>
> Kris
>

I believe that this is not the solution to my problem because all
information about failed validators are propagated to sfForm at the
end of validation process.



> On Oct 14, 10:53 pm, Fabien Potencier <[EMAIL PROTECTED]
> project.com> wrote:
>> Łukasz Wojciechowski wrote:
>> > Hi
>>
>> > Im dissapointed that I can't check Validation state in my PostValidator :(
>>
>> What do you mean by Validation?
>>
>> Fabien
>>
>>
>>
>> > According to sfValidatorSchema::doClean - this is not possible now
>>
>> > Or maybe Im wrong (I hope so :)) ? If there is a way - please tell me.
> >
>
>



-- 
Best regards
Łukasz Wojciechowski

New Generation Software
+48 602 214 629

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to