apache / apache/grails-core

templates, wrapper and widget not working for oneToMany and manyToOne associations

Open
#14,195 0 comments 0 reactions 0 assignees View on GitHub
relates-to: grails-fields
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

The Grails Fields Plugin will only load the association widget (`views/fields/oneToMany/_widget.gsp` and `views/fields/manyToOne/_widget.gsp`) if it exists in the views directory, regardless of how you attempt to set the widget to another value in constraints or on the `f: `tag.

This also impacts templates and wrapper

Contributor guide

Open the contributing guide

Research direction

Start by inspecting views/fields/oneToMany/_widget.gsp and views/fields/manyToOne/_widget.gsp, then reproduce the behavior using association constraints and the f: tag with alternate widget, template, and wrapper values. Done means those configured values are honored instead of always loading the association widget when it exists in the views directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.