Hi all,
I use Symfony 1.4

I want to configure a select double list using
sfWidgetFormSelectDoubleList.
My question:
  - How can a configure the ASSOCIATED items?
To the widget's constructor I give the "possible options" via
'choices' option, ok. But what about the selected defaults?
I figured out that the FormField's '$value' property holds
the array of associated items, but where can I set this?
I really don't wan't to make field's $value public and set
this in my input template... ;-)
Can anyone help me out? Thanks!

this is my code:
'codecs_list'         => $this->widgetSchema['codecs_list']
                                        ->setOption('renderer_class',
'sfWidgetFormSelectDoubleList')
                                        ->setOption('order_by',
array('id', 'asc'))
                                        -
>setOption('renderer_options' , array('label_unassociated' =>
'Desativados',
 
'label_associated' => 'Ativados',
 
'associated_first' => false))

On this context, where i can include default values to associated
select??

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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