我的页面是这样的:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ include file="common/taglib.jsp"%>
<html>
<head>
<title>test</title>
</head>
<body>
<f:view>
<h:form>
<table align="center" border="1">
<tbody>
<a4j:repeat value="#{test.personList}" var="person">
<tr>
<td><h:outputText value="#{person.name}" /></td>
</tr>
</a4j:repeat>
</tbody>
</table>
</h:form>
</f:view>
</body>
</html>显示的结果一直都是只有name的数据test和hehe紧密相邻,但是表格是空的,并且在数据下面的位置。
查看html的源代码:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>test</title>
</head>
<body> <form id="_id0" method="post" action="/RichFaces/test.jsf;jsessionid=9E050B2B526F9219189E3EE0B6B5908B" enctype="application/x-www-form-urlencoded"> <table align="center" border="1">
<tbody>
<tr>
<td></td>
</tr>
testhehe
</tbody>
</table>
<input type="hidden" name="_id0" value="_id0" /></form></body>
</html>这是为什么啊?
高手们指点下·~~~~
<%@ include file="common/taglib.jsp"%>
<html>
<head>
<title>test</title>
</head>
<body>
<f:view>
<h:form>
<table align="center" border="1">
<tbody>
<a4j:repeat value="#{test.personList}" var="person">
<tr>
<td><h:outputText value="#{person.name}" /></td>
</tr>
</a4j:repeat>
</tbody>
</table>
</h:form>
</f:view>
</body>
</html>显示的结果一直都是只有name的数据test和hehe紧密相邻,但是表格是空的,并且在数据下面的位置。
查看html的源代码:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>test</title>
</head>
<body> <form id="_id0" method="post" action="/RichFaces/test.jsf;jsessionid=9E050B2B526F9219189E3EE0B6B5908B" enctype="application/x-www-form-urlencoded"> <table align="center" border="1">
<tbody>
<tr>
<td></td>
</tr>
testhehe
</tbody>
</table>
<input type="hidden" name="_id0" value="_id0" /></form></body>
</html>这是为什么啊?
高手们指点下·~~~~
解决方案 »
- 各位、亲 。 来看看吧。
- 关于spring + structs整合的问题
- 急问: 使用ibatis如何实现动态复合查询?
- 高手指教一下~~
- 数据库里记录的父子关系用struts标签如何在页面清晰的显示出来!!!!!!!!!1
- 他想做一个比阿里巴巴,还大的商业网站
- (200分)怎样用Jbuilder8新建一个struts文件,能运行,能看到运行后的效果?(急等)
- 服务器每天宕机2次,如何解决
- html5 canvas 获取图片分享微博失效
- js如何限制上传图片尺寸
- 时间格式转换问题?
- 求助解决错误:Cannot forward after response has been committed!
楼主【harkue】截止到2008-07-29 17:40:04的历史汇总数据(不包括此帖):
发帖的总数量:14 发帖的总分数:330 每贴平均分数:23
回帖的总数量:55 得分贴总数量:11 回帖的得分率:20%
结贴的总数量:11 结贴的总分数:130
无满意结贴数:5 无满意结贴分:80
未结的帖子数:3 未结的总分数:200
结贴的百分比:78.57 % 结分的百分比:39.39 %
无满意结贴率:45.45 % 无满意结分率:61.54 %
楼主加油
取消马甲机器人,请点这里:http://www.java2000.net/mycsdn/robotStop.jsp?usern=harkue
修改为:
<td class="dr-table-cell rich-table-cell" >
<h:outputText value="#{person.name}" />
</td>试一下,如果可以别忘记给分哈,哈哈
不是吧!<td class="dr-table-cell rich-table-cell" > 的class="dr-table-cell rich-table-cell"是加入css而已,与那个没关系啦~