Spring Roo Master/Detail & @OneToMany
In reference to Problem with @OneToMany annotation with Spring Roo, the <field:se开发者_如何学JAVAlect... solution works well for create & update.jspx. Any idea how to get this to work for show.jspx?
After much trial & error I found a working combination.
From my update.jspx:
<field:select field="venueConfig" id="c_net_sf_bookright_entity_Venue_venueConfig" itemValue="id" items="${venueconfigs}" multiple="true" path="/venueconfigs" z="2LbToeFzkMFCLmDKmonFK/d1IgU="/>
...the following is required in show.jspx:
<field:select field="venue.venueConfig" id="s_net_sf_bookright_entity_Venue_venueConfig" itemValue="id" items="${venue.venueConfig}" multiple="true" path="/venueconfigs" z="2LbToeFzkMFCLmDKmonFK/d1IgU="/>
精彩评论