Reputation: 3279
I was wondering why the create page of my domain class won't reflect the changes that I did on my domain class. I tried adding some extra fields but it just won't appear on the UI.
I also tried changing the order the fields that are typed in on the static constraints = {} closure but to no avail and they still look the same order as before I did the change
Also tried grails clean, nothing happened
I am pretty sure I am in the right directory and I am using the development environment.
Upvotes: 0
Views: 237
Reputation: 39887
If you created your scaffolding by executing the generate-all command you are using static scaffolding. If you are using static scaffolding you will have to re-execute the generate-all command after modifying your domain class. Static scaffolding is meant as a template that you can modify for your needs. It is not meant to automatically change when your domain class does. Dynamic scaffolding will change when your domain class changes but offers less customization ability. In general static scaffolding is better for custom UI while dynamic scaffolding works well for things such as admin pages that most users won't see.
Upvotes: 4