|
This post has NOT been accepted by the mailing list yet.
Why Grails(2.1.0) does not read renderEditor.template?
|
|
This post has NOT been accepted by the mailing list yet.
did the following:
1. created an application: grails create-app myapp 2. transferred to a folder: cd myapp 3. installed templates: grails install-templates 4. created a domain class: create-domain-class myapp.Book 5. edited the file myapp/grails-app/domain/myapp/Book.groovy : package myapp class Book { String title } 6.created a controller: create-scaffold-controller myapp.Book 7. edited the file myapp/src/templates/scaffolding/renderEditor.template: private renderStringEditor(domainClass, property) { if (!cp) { return "<input type='text' name='${property.name}' value='\${${domainClass.propertyName}?.${property.name}}' size='400' />" //return "<g:textField name=\"${property.name}\" value=\"\${${domainInstance}?.${property.name}}\" />" ... 8. grails run-app myapp As a result of changes not visible. Works unchanged even when the remote file renderEditor.template. Why Grails(2.1.0) does not read renderEditor.template? OS is Xubuntu 11.10. |
|
Hi,
First, your message wasn't accepted by the mailing list, so the vast majority of people on the mailing list didn't see this. If you can go to http://grails.org/Mailing+lists and follow the instructions for subscribing there, your Nabble messages will go through just fine. As for renderEditor.template, I don't know whether this is still supported. If you can easily reproduce the problem, please raise an issue in JIRA and attach a sample project. It may be a bug. That said, I strongly recommend that you try out Rob Fletcher's Fields plugin as it is simpler and more powerful. Regards, Peter
|
|
I also need to override the list of components. This Rob Fletcher's Fields plugin does not support this feature. It is desirable to modify built-in capability. I wonder could it be further unstable work templates?
|
|
try to establish a consistent:
1. grails install-templates (to be able to edit other templates, such as list) 2. grails install-plugin fields 3. grails install-form-fields-templates (will overwrite the _edit.gsp and _create.gsp) |
| Powered by Nabble | Edit this page |
