[symfony-users] Re: how to pass values to my custom form Widget (one widget for two model-properties). Symfony 1.2

2009-11-22 Thread Don_Busi
Hi all, seems it didn't work that nice after all by just setting the default values. It works fine when I first show the widget. But when I try to save the form and have invalid values on some of the fields, the season widget didn't get repopulated properly. I found a work-around that does the j

[symfony-users] Re: how to pass values to my custom form Widget (one widget for two model-properties). Symfony 1.2

2009-11-16 Thread Don_Busi
Thanx a lot! Works like a charm. Don --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send ema

[symfony-users] Re: how to pass values to my custom form Widget (one widget for two model-properties). Symfony 1.2

2009-11-16 Thread Martin Ibarra Cervantes
you can setDefault $form->setDefault('dateRange', 'value'); On Thu, Nov 12, 2009 at 1:14 PM, Don_Busi wrote: > > Hi everybody, > > I have an entity that (among other properties) has a "startDate" and > an "endDate" property. Now I created a form widget that graphically > shows the date range s