Results 1 to 3 of 3

Thread: CustomPropertyEditors for Grails Controller

  1. #1
    Join Date
    Nov 2006
    Posts
    21

    Post 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. #2
    Join Date
    Jul 2007
    Posts
    121

    Default

    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

  3. #3
    Join Date
    Nov 2006
    Posts
    21

    Question 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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •