As I was trying to run my own filterchain (for my own component-level form validation), I ran into the following problem:
I include several components into one page request and I'd like to enable validation on certain components only (these are actually sfActions instances, no sfComponents) by supplying a sfContext clone with a changed request method based on some conditions. Ie: on a single page request, one component might need to validate while the others don't so I change the request method of all but one component to GET instead of POST. When creating a filterchain, one can initialize it with a custom sfContext and sfRequest. This context is correctly passed to every object involved in the chain including the sfValidatorManager. There is only one problem: It doesn't work because the sfValidatorConfigHandler generates config files that directly access the $_SERVER['REQUEST_METHOD'] value instead of using the request method of the supplied sfRequest. I was wondering if this been taken into consideration while designing the new validation system? Or maybe there is a workaround? Hope I make sense in the above problem description. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
