You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dynamic scaffolding controller and static scaffolding controller behaves differently for updates
Task List
Steps to reproduce provided
Stacktrace (if present) provided
Example that reproduces the problem uploaded to Github
Full description of the issue provided (see below)
Steps to Reproduce
Create new app with domain class EntityA and EntityB (just different name)
package org.grails.test
class EntityA {
String name
Integer number
static constraints = {
name maxSize: 255
number min: 1900, validator: {val -> val < 2019 && val >= 1900 }
}
}
update BootStrap
def init = { servletContext ->
new EntityA(name: 'A', number: 2000).save()
new EntityB(name: 'B', number: 2000).save()
}
Create scaffold-controller for EntityA and generated controller and views for EntityB
The text was updated successfully, but these errors were encountered:
fbartnitzek
changed the title
No validation message on update with scaffold-controller
No validation message on update with dynamic-scaffold-controller
Oct 23, 2017
There I found another issue with the same problem: grails/scaffolding#24
It's 1.5 years old, without any comment or fix...
IMHO its quite a huge bug if the standard validation of a domain class does not work properly and should not be ignored for more than a year (plugin or not).
Dynamic scaffolding controller and static scaffolding controller behaves differently for updates
Task List
Steps to Reproduce
Expected Behaviour
for both domains the controller should stay at the edit-page and show the validation message:
Actual Behaviour
for the scaffold-controller of EntityA:
EntityA 1 updated
the other validations (generated-controller/create, scaffold-controller/create, generated-controller/edit) work as expected above
Environment Information
Example Application
The text was updated successfully, but these errors were encountered: