fields icon indicating copy to clipboard operation
fields copied to clipboard

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

Open kuceram opened this issue 6 years ago • 0 comments

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.

kuceram avatar Aug 10 '18 14:08 kuceram