Won't generate grails date picker
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
In the views directory _fields I have several widgets and wrappers. The one for a date picker has this line in it: That way I can specify everything from the domain class - how the date is displayed, the precision of the date picker, etc.
This is the error when it tries to generate the GSP: Error executing tag : Error evaluating expression [constraints.attributes.precision] on line [7]: No such property: attributes for class: org.grails.scaffolding.model.property.Constrained I looked at the code on GitHub and can't find attributes as a property. At the moment I've fallen back on the old _form.gsp template.
Contributor guide
Research direction
Start with the date-picker wrapper under the views directory _fields and reproduce GSP generation using the reported f:all error. Trace how org.grails.scaffolding.model.property.Constrained exposes constraint data, then compare the fallback _form.gsp template. Done means generated GSP succeeds and the date picker still receives the configured display, precision, and years values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100