Hello,

Have you try to overwrite the bind method ?

The idea is to remove/add validator depends on the values provided by
the request.

Thomas

2008/10/6 Miloslav Kmeť <[EMAIL PROTECTED]>:
>
> I would be glad to hear from symfony developers on this topic. I do not find 
> any solution on this problem.
>
> I konow the global validators, but I do not know how can I get from 
> preValidator the validatorScheme.
>
> I would like to write my own global prevalidator GroupValidator, from this 
> validator I would like to change
> option in validatorSchema of the form to set the requried option to 
> true/false.
>
> But it looks impossible.
>
>
> Dňa Po 6. Október 2008 13:09 Drahpal napísal:
>>
>> On 6 oct, 11:24, Miloslav Kmeť <[EMAIL PROTECTED]> wrote:
>> > I think, that this validators chains validators only for one field 
>> > (widget).
>>
>> Yes, you're right!
>>
>> maybe the global validators are more for that (in fact validators
>> validate only one value, global validators are more... global)?
>> http://www.symfony-project.org/book/forms/1_1/en/02-Form-Validation#Global%20Validators
>>
>> maybe maybe.... hope this can help!
>>
>>
>> >
>>
>
> --
> Miloslav Kmeť
>
> Banská Bystrica
>
> >
>



-- 
Thomas Rabaix
Internet Consultant

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to