grails-views
grails-views copied to clipboard
Fields not working then application runs as Runnable WAR
If application runs from runnable WAR (java -jar app.war) the plugin doesn't work,
test project https://github.com/yurib/TestGrailsFieldsPluginWar
Steps to reproduce:
- Create application and one domain object in it
>grails create-app TestGrailsFieldsPluginWar
>cd TestGrailsFieldsPluginWar/
grails> create-domain-class Author
grails> create-domain-class Author
grails> create-scaffold-controller Author
Add name and age properties Create custom field renders for the name:
ls grails-app/views/_fields/Author/name/
_displayWidget.gsp _displayWrapper.gsp _widget.gsp _wrapper.gsp
Run application:
grails>run-app
Observe custom field rendering.
Build and run Runnable WAR
grails>assemble
cd ./build/libs/
java -Dgrails.env=dev -jar TestGrailsFieldsPluginWar-0.1.war
Observe that field rendering as default without plugin override.