开发者

Spring Roo Master/Detail & @OneToMany

开发者 https://www.devze.com 2023-04-04 19:09 出处:网络
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.

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="/>
0

精彩评论

暂无评论...
验证码 换一张
取 消