Announcement Announcement Module
No announcement yet.
CustomPropertyEditors for Grails Controller Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • CustomPropertyEditors for Grails Controller

    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.

  • #2
    I don't know of a way to associate one to a particular controller.

    Here's a good example of registering a custom editor:

    You should also look at this plugin:


    • #3
      handling multiple custom editors for a class

      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.