apache / apache/grails-core

[enhancement request] option to hide null feilds in <f:display bean="user" />

Open
#14,221 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

is great. However if its a big domain object (such as user with perhaps 20 nullable fields), it would be fantastic to have an option to not display all the null ones.

e.g.

This one addition would save us hundreds of additional lines of code doing each field by hand.

Contributor guide

Open the contributing guide

Research direction

Start by locating the implementation of the tag and how it renders bean properties. Add the requested hideNull option, then verify that fields with null values are omitted while non-null fields remain displayed.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.