On Mon, Feb 8, 2010 at 5:12 PM, Peter Warnock <[email protected]> wrote:
> You might look at using a custom error decorator to adapt getMessages to > your need. - pw > > Thanks for the suggestion. In this case, I'm not sure that would apply. I've written a jQuery plugin that submits the form via xhr and handles the JSON response. If the response contains a validationErrors object, I step through it and display the messages adjacent to the appropriate elements, relying on a simple naming convention to figure out what goes where. So, in a sense, that's my error decoration. Basically I only need zend_form to be rendered once -- when they GET it for the first time and there are no user input validation errors to think about. Seems to be working fine, but if there's a better way, or if this wheel has already been invented, I am listening. -- Support real health care reform: http://phimg.org/ -- David Mintz http://davidmintz.org/
