在下面的代码(jsf页面)中,我显示了一些酒店信息:表格行,但是我想在主表格的其中一列中填充房间细节。代码实际上更有意义。在标题为“房间”的栏目中,我想显示一张带有房间详细信息的表格。整个表格使用一个名为“suitableHotelsList”的列表。在列表中,有几个mainVO列出了列属性中的详细信息。房间列表(其中包含roomVO)也位于MainVO内。因此,我推测我应该能够做一个新的表,如下所示,但给错误说:“未知财产'房间列表'” 任何建议,我可以做些什么,使酒店与他们的房间?使用显示器:显示器中的表格:表格列?
<div class="Tbl" style="border-width: 2px; border-style: solid; margin: 2px; font-size: 20px; height: 442px; left: 22px; top: 46px; overflow: scroll; position: absolute; width: 1268px; z-index: 1">
<display:table class="its" id="hotelList" name="requestScope.DetailSelection.suitableHotelsList" style="border-width: 2px; border-style: solid;">
<display:setProperty name="basic.empty.showtable" value="false"/>
<display:setProperty
name="basic.msg.empty_list">Gösterilecek bir kayıt bulunamadı</display:setProperty>/>
<display:column
property="hotelName" style="font-size: 30px; width:200px; text-align:center;" title="Hotel Name"/>
<display:column property="hotelStars" style="font-size: 30px; width:100px; text-align:center;" title="Stars"/>
<display:column property="userRating" style="font-size: 30px; width:100px; text-align:center;" title="User Rating"/>
<display:column property="hotelSummary" style="font-size: 20px; width:500px; text-align:center;" title="Summary"/>
<display:column style="width:100px;" title="Hotel Details">
<a href="HotelDetailsPage.jsp?id=${hotelList.hotelID}&screenType='O'&initial='true'">
<ui:image style="height:80px; width:80px;" url="/resources/img2.JPG"/>
</a>
</display:column>
<display:column style="width:100px;" title="Rooms">
<display:table class="its" id="roomList" name="requestScope.DetailSelection.suitableHotelsList.roomList">
<display:column property="room_type" style="font-size: 10px; width:100px; text-align:center;" title="Room Type"/>
<display:column property="price_per_night" style="font-size: 10px; width:100px; text-align:center;" title="Price Per Night"/>
<display:column property="room_number" style="font-size: 10px; width:100px; text-align:center;" title="Room Number"/>
<display:column style="width:100px;" title="Hotel Details">
<a href="Reservations.jsp?id=${roomList.roomID}&screenType='O'&initial='true'">
<ui:image style="height:80px; width:80px;" url="/resources/img3.JPG"/>
</a>
</display:column>
</display:table>
</display:column>
</display:table>
</div>
工作得很好,谢谢 – mechanicum 2012-01-06 11:46:50