I am trying to merge many lists into a single list in a gsp. For example:
-
Class A has a list of class B instances
-
When i try using the expression:
${a.findAll(some_condition).b}i am getting a list of lists of instances of B
I would like the expression to return a single list, with all instances of b belonging to every a that satisfies some_condition
Can you try:
That should get you a single list
Should also remove duplicates