Gordon Flash Grails plugin protects the flash scope from being cleared out by static file requests, AJAX requests, non-HTML responses, error responses, and explicitly protected requests.
The default config will be good enough to protect the flash scope in most cases. In special cases, you can explicitly protect the flash scope during a request by calling request.setAttribute(GordonFlashFilter.PROTECT_FLASH_SCOPE, true)
To install the latest version in your app: grails install-plugin gordon-flash
- Remove -DEV suffix from version number in GordonFlashGrailsPlugin.groovy
- Add release notes to CHANGELOG and update version number
- Run
grails package-plugin
- Push new plugin zip file to git repo
- Tag with:
git tag "v0.x" && git push --tags
- Release to the grails plugin repo without source (source is on github) using:
grails release-plugin -zipOnly
. This will ask for your svn credentials (same as your xircles account). - Increment version in GordonFlashGrailsPlugin.groovy to 0.x+1-DEV
- Push to git repo
grails test-app functional:
grails run-app
Edit Config.groovy log4j config
svn --username xircles-user --password xircles-pwd checkout https://svn.codehaus.org/grails-plugins/grails-gordon-flash
Developed by Eliot Sykes https://github.com/eliotsykes, contributions welcome