Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not load all one-to-many relationships in <f:display bean="${myBean}"> #285

Open
kuceram opened this issue Aug 10, 2018 · 0 comments
Open
Labels
enhancement help wanted Please submit pull-request

Comments

@kuceram
Copy link

kuceram commented Aug 10, 2018

Tag f:display is used in scaffolding. Opening some scaffolded view with one-to-many relationship having thousands of relations loads everything from database. This usually breaks the server.

I know I can use except to omit certain bean property. However, I'd like to have it in the view. I can think of two possible fixes:

  1. Introduce omitValue something similar to except which would not load the value. Then you can do whatever you want in _displayWidget.gsp

  2. Limit number of relationships loaded. Maybe also using some tag property.

@sbglasius sbglasius added enhancement help wanted Please submit pull-request labels Dec 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted Please submit pull-request
Projects
None yet
Development

No branches or pull requests

2 participants