[symfony-users] Re: [Symfony2 Forms] CollectionType - cannot display error messages with widget

2011-05-05 Thread Mark Fullbrook
Hi Bernard, When I call form_errors(item.myfield) on an item within a collection it doesn't display the validation error message that is associated with that item. Instead the error messages display at the form level. So in my example snippets the validation messages for fields that belong to

[symfony-users] Re: CollectionType - cannot display error messages with widget

2011-05-05 Thread Mark Fullbrook
. On May 5, 12:31 pm, Mark Fullbrook mark.fullbr...@gmail.com wrote: Hi Bernard, When I call form_errors(item.myfield) on an item within a collection it doesn't display the validation error message that is associated with that item.  Instead the error messages display at the form level.  So

[symfony-users] Re: CollectionType - cannot display error messages with widget

2011-05-05 Thread Mark Fullbrook
. On May 5, 1:21 pm, Mark Fullbrook mark.fullbr...@gmail.com wrote: I have just changed the type of one of the item fields to money and the validation errors being thrown by NumberToLocalizedStringTransformer are being rendered by {{ form_errors( item.price ) }}.  So it's the validation errors

[symfony-users] Re: [new Forms] Custom Labels in FormBuilder

2011-05-04 Thread Mark Fullbrook
That is exactly how I have specified the labels for my forms and it works for me. Have you upgraded to the latest Symfony code? On May 2, 12:58 pm, Conrad conrad.barthel...@googlemail.com wrote: I would like to customize my labels for my forms using the 'label' option of a field, unfortunately

[symfony-users] [Symfony2 Forms] CollectionType - cannot display error messages with widget

2011-05-03 Thread Mark Fullbrook
Hi, I'm having great success with the new Form framework, except for the CollectionType. My issue is that the errors are rendering for the form {{ form_errors(form) }} and not the individual rows. My Types: class SpotResponseType extends AbstractType { public function buildForm(FormBuilder