Grails Development - OlivierLibouban/marketplace GitHub Wiki

Grails Security

In this tutorial , if you start with the recommended added compile step in grails-app/conf/BuildConfig.groovy:

  • compile ':spring-security-core:2.0-RC2' You will fall down the rabbit hole. Trying to correct one error after another will lead nowhere. Instead, use:
  • compile ':spring-security-core:2.0-RC4' That small number will make a big difference!

And let's not forget the plugin repo:

  • mavenRepo 'http://repo.spring.io/milestone'

Grails 'searchable'

This is one great AJAX library which relies on Lucene and Compass and makes it super easy to search for items, even items of a different kinds (different entities) and retrieve them as you type! In BuildConfig.groovy, add:

  • mavenRepo "http://repo.grails.org/grails/core"
  • compile ":searchable:0.6.9" Re-run
  • grails compile

All the jar files should download for those libraries.

You can then have one search over many entities say a search controller with search GSP views which return 'static searchable = true' Domain Objects in one page or in many different pages.