Hello,

I'm having some problems with cutomizing list filters.

   1. The filters don't seem to work at all if "peer_method" is used changed
   under "list" key in generator.yml. I have a custom "peer_method" which works
   fine in the list view, but filtering doesn't have any effect. If I remove
   "peer_method", the filter does work. What's wrong?
   2. I also tried to customize the presentation of certain filter fields.
   For example, I tried replacing the default text input fields that are
   defined in the base form filter with custom dropdowns:

   class MyObjectFormFilter extends BaseMyObjectFormFilter {
       public function configure() {
           $this->widgetSchema['location'] = new sfWidgetFormChoice(array(
               'choices' => array('' => 'Please select...') +
   sfConfig::get('my_object_location_list')
           ));
           $this->validatorSchema['location'] = new sfValidatorChoice(array(
               'required' => false,
               'choices'  => array_keys(sfConfig::get('
   my_object_location_list'))
           ), array(
               'invalid'  => 'Bah.'
           ));
       }
   }

   After this customization the location field is never filtered. I can
   select an option in the filter form and it remains selected after the filter
   form submission, but the actual SQL query is not affected in any way - as if
   I didn't select any option. What am I doing wrong here?


-- 
Regards,
Rytis

--~--~---------~--~----~------------~-------~--~----~
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