开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜