不要用 Foreach,用 For, 而且你要分清循环的内容到底是什么,下面的代码你试一下
<property name="meet"/>
<component id="meetListLoop" type="For">
<binding name="source" value="meetList"/>
<binding name="value" value="meet"/>
<binding name="element" value="literal:tr"/>
</component>
meetList获取方法如下:
public List getMeetList(){
return MeetList.getMeetList(this.getMyVisit().getUsername());
}
html代码如下:
<tr jwcid="meetListLoop" align="center">
<td height="30"><a href="#" jwcid="meet.meetContentLink">查看</a></td>
<td height="30"><span jwcid="meet.meetTime1">会议时间</span></td>
<td height="30"><span jwcid="meet.meetTitle1">会议标题</span></td>
</tr>
<property name="meet"/>
<component id="meetListLoop" type="For">
<binding name="source" value="meetList"/>
<binding name="value" value="meet"/>
<binding name="element" value="literal:tr"/>
</component>
meetList获取方法如下:
public List getMeetList(){
return MeetList.getMeetList(this.getMyVisit().getUsername());
}
html代码如下:
<tr jwcid="meetListLoop" align="center">
<td height="30"><a href="#" jwcid="meet.meetContentLink">查看</a></td>
<td height="30"><span jwcid="meet.meetTime1">会议时间</span></td>
<td height="30"><span jwcid="meet.meetTitle1">会议标题</span></td>
</tr>