I got a row in my create.jspx as follows:
<field:select field="groupsowdrefs"
id="c_com_usergroups_manager_domain_Users_groupsowdrefs"
itemValue="id" items="${groupsviews}" multiple="true"
path="/groupsviews" z="yuLSgZ+z3Zrwet6KAYzGT+xFndc="/>
this field displays a box with rows populated by the relationship @ManyToMany between 2 entities.
Now the problem is that the first entity has only one String attribute which populates this box, but has itself a @ManytoOne relation with another entity. This value is important and is not shown in the box rows!
This happens because the field:select shows only attributes and not fields of related entities.
I tried to put an ItemLabel tag and it works but box rows show only one field at time.
Maybe a simple div which shows the info i need on clicking the rows of the box, or a concatenate ItemLabel, a jquery trick..or anything..would solve this, but jspx is hard to understand to me.
A possible solution would be to add a getter to the class you want, as a read-only property:
and use that property in the
itemLabel