当前位置:编程学习 > JAVA >>

关于两个一个页面中ectable的问题。

我在一个页面中放了两个<ec:table>,
但是后来改用了<ec:side>,改了之后发现只能显示出一个列表,而且页面变得很宽

 我找了好久没有找到原因,如有能够帮助我的大虾,不胜感激。

    如需要源代码请说明我会再补充 --------------------编程问答-------------------- <ec:table> 是那个框架的什么标签?
没用过
--------------------编程问答-------------------- 是个显示数据用的列表,

file:///C:/Documents%20and%20Settings/Administrator/桌面/未命名.jpg

额。。不能粘图啊?

<logic:present name="replist1">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td>
<ec:table items="replist1" var="rep1"
retrieveRowsCallback="process"
action="/repListApp.do?method=query"
sortable="true" listWidth="100%" style="table-layout: auto;">
<ec:row highlightRow="true">
<ec:column cell="checkbox" headerCell="checkbox"
alias="chkBoxName" value="${rep1.hdno}" width="2%"
viewsAllowed="html" />
<ec:column property="pol" title="" width="5%">
</ec:column>
<ec:column property="pod" title="hdListHead.pod" width="5%" />
<ec:column property="totalUnit" title="hdListHead.totalUnit"
width="5%" />
<ec:column property="totalCbm" title="hdListHead.totalCbm"
width="5%" />
<ec:column property="totalSqm" title="hdListHead.totalSqm"
width="5%" />
<ec:column property="vessel" title="hdListHead.vessel"
width="5%" />
<ec:column property="voy" title="hdListHead.voy" width="5%" />
<ec:column property="depaDate" title="hdListHead.depaDate"
width="5%" />
<ec:column property="prebookingStatus"
title="hdListHead.prebookingStatus" width="5%" />
<ec:column property="owerStatus" title="shipList.oStatus"
width="5%" />
<ec:column property="customer" title="hdListHead.customer"
width="5%" />
<ec:column property="sales" title="hdListHead.sales" width="5%" />
<ec:column property="maker" title="hdListHead.maker" width="5%" />
</ec:row>
</ec:table>
</td>
</tr>
</table>
<!-- 第二个列表 -->
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td>
<ec:table items="replist1" var="rep2"
retrieveRowsCallback="process"
action="/repListApp.do?method=query"
sortable="true" listWidth="100%" style="table-layout: auto;">
<ec:row highlightRow="true">
<ec:column alias="count" cell="rowCount"
title="hdListHead.hdno" sortable="false" />
<ec:column property="cargoName" title="hdListDetail.cargoName"
width="10%" />
<ec:column property="model" title="hdListDetail.model"
width="10%" />
<ec:column property="length" title="hdListDetail.length"
width="5%" />
<ec:column property="width" title="hdListDetail.width"
width="5%" />
<ec:column property="high" title="hdListDetail.high"
width="10%" />
<ec:column property="cbm" title="hdListDetail.cbm" width="10%" />
<ec:column property="kg" title="hdListDetail.decimal"
width="10%" />
<ec:column property="unit" title="hdListDetail.unit"
width="10%" />
<ec:column property="totalCbm" title="hdListDetail.totalCbm"
width="10%" />
<ec:column property="sqm" title="hdListDetail.sqm" width="10%" />
<ec:column property="maker" title="hdListHead.maker"
width="10%" />
<ec:column property="usd" title="hdListDetail.usd" width="10%" />
<ec:column property="rmb" title="hdListDetail.rbm" width="10%" />
<ec:column property="selfProp" title="hdListDetail.selfProp"
width="10%" />
<ec:column property="cargoNote" title="hdListDetail.cargoNote"
width="10%" />
</ec:row>
</ec:table>
</td>
</tr>
</table>
</logic:present>

--------------------编程问答-------------------- <form id="f1"><ec:table> </ec:table> </form>
<form id="f2"><ec:table> </ec:table> </form>

这种格式就可以显示了
补充:Java ,  Java相关
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,