fields
fields copied to clipboard
Do not load all one-to-many relationships in <f:display bean="${myBean}">
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:
-
Introduce
omitValue
something similar toexcept
which would not load the value. Then you can do whatever you want in_displayWidget.gsp
-
Limit number of relationships loaded. Maybe also using some tag property.