Thank you Nicolas, I finally send my response with javascript which displays errors if errors occured or a notice message if the form was valid.
Regards, Olivier On 27 juin, 15:02, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote: > On Fri, Jun 27, 2008 at 2:41 PM, obalais <[EMAIL PROTECTED]> wrote: > > So I can't repopulate automatically my form with this system, can I ? > > Yes, with something like jQuery or even with plain old javascript it's easy. > > > If I understand what you mean, I'm able to display form errors to the > > user but not use the true power of the new form framework... > > You can of course factorize stuff to be used by both the html and the > ajax stuff, eg. using the formats handling features provided by > symfony 1.1. Your action will then return json - like in the example I > provided - when requested as json and html when requested as html. A > good way to achieve both client and server side validation using the > same action code, BTW. > > ++ > > -- > Nicolas > Perriaulthttp://prendreuncafe.com-http://symfonians.net-http://sensiolabs.com > Phone: +33 660 92 08 76 --~--~---------~--~----~------------~-------~--~----~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---