Here is the official definition of Scaffolding :
Scaffolding lets you auto-generate a whole application for a given domain class including:
- The necessary views
- Controller actions for create/read/update/delete (CRUD) operations
So if you define for example this domain class :
class User {You are excpecting to have html fields in this order. But it's not necessary the case.It's seems that the default order is alphabetical.
String name
String tel
String addr
}
If you want to define field order, you have to add the following to the domain class :
statics constraints = {With constraints, you will be able to add validation, constraints ...
name()
addr()
tel()
}
No comments:
Post a Comment