Search code examples
grailsgrails-plugin

Extending Spring Security UI plugin (and plugins in general)


The Spring Security UI plugin, among other things, provides a registration page. On this page are 4 fields: username, email, password, and verify-password. It uses a regular architecture of controller and gsps. Staying with a single page registration for the user, I need to add a bunch of fields -- e.g. address, payment info, etc.

Any thoughts / recommendations on how to extend this plugin's page, so that I can get updated versions and incorporate them without too much re-integration. It's almost like one part of the page should go to the UI controller, and the other parts of the page should go to my controller. Note the UI controller usees regular forms (i.e. not ajax).

Thanks


Solution

  • To custom configure the Spring Security UI plugin I'd first of all have a look at the existing plugin code to get a handle on how it works and then run the override scripts that you require as detailed at:

    http://burtbeckwith.github.com/grails-spring-security-ui/docs/manual/guide/10%20Customization.html

    In your case you'd need:

    grails s2ui-override register com.my.packagename
    

    Jim.