I was looking to use CustomPropertyEditors for my grails project. Can someone tell me the steps I should follow to associate my CustormPropertyEditor to a specific Controller.
Printable View
I was looking to use CustomPropertyEditors for my grails project. Can someone tell me the steps I should follow to associate my CustormPropertyEditor to a specific Controller.
I don't know of a way to associate one to a particular controller.
Here's a good example of registering a custom editor: http://stackoverflow.com/questions/9...-unmarshalling
You should also look at this plugin: http://grails.org/plugin/extended-data-binding
burtbeckwith , Thanks for your response. I encountered the solutions suggested by your links, but all those approaches are applied to a global scope, and not specific to controller.
I have a situation, where Calendar object need to be rendered in different formats in different views. For that reason I wanted to have different custom editors to handle each format. Ideally, I was looking for a way to associate specific custom editor with the appropriate Controller.