yurib opened a new issue, #14256:
URL: https://github.com/apache/grails-core/issues/14256

   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:
   1. 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to