`

Struts2 s:iterator 双层使用

阅读更多
s:iterator 双层使用中的问题
					<s:iterator value="view.result" id="result" status="st">
						<s:iterator value="saleMaintainDetailList" status="detail">
						<tr>
							<td class="listTd"><s:checkbox name="checked" /> <s:hidden name="id_list" value="%{#result.id}" /></td>
							<td class="listTd"><s:property value="code" /></td>
							<td class="listTd"><s:property value="device.code" /></td>
							<td class="listTd"><s:property value="device.IMEI" /></td>
							<td class="listTd"><s:property value="device.WIFI" /></td>
							<td class="listTd"><s:property value="deviceInfo" /></td>
							<td class="listTd"><s:property value="userName" /></td>
							<td class="listTd"><s:property value="userAddress" /></td>
							<td class="listTd"><s:property value="userContact" /></td>
							<td class="listTd"><s:property value="buyTime" /></td>
							<td class="listTd"><s:property value="backTime" /></td>
							<td class="listTd"><s:property value="finishTime" /></td>
							<td class="listTd"><s:property value="view.statusMap[#result.status]" /></td>
							<s:if test="#detail.getIndex()==0">
								<td class="listTd" rowspan="<s:property value="saleMaintainDetailList.size()" />">
									<div align="center"><span class="STYLE2">
										<img src="<s:url value="/server/images/037.gif" />" width="9" height="9" /></span>
										<span class="STYLE1">
										[</span><a href="javascript:void(0);" onclick="javascript:return update_data('<s:property value="#result.id" />');"><s:text name="res.edit"/></a><span class="STYLE1">]
										[</span><a href="javascript:void(0);" onclick="javascript:return detail_data('<s:property value="#result.id" />');"><s:text name="res.detail"/></a><span class="STYLE1">]
										</span>
									</div>
								</td>
								<td class="listTd" rowspan="<s:property value="saleMaintainDetailList.size()" />">
									<div align="center">
										<span class="STYLE2"> <img src="<s:url value="/server/images/010.gif" />" width="9" height="9" /></span>
										<span class="STYLE2"> </span>
										<span class="STYLE1">[</span><a href="javascript:void(0);" onclick="javascript:return delete_data('<s:property value="#result.id" />');"><s:text name="res.delete"/></a><span class="STYLE1">]</span>
										
										<s:set name="status" value="#result.status"></s:set>
										
										<s:if test='%{#status=="00"}'>
											<span class="STYLE1">[</span><a href="javascript:void(0);" onclick="javascript:return disable_data('<s:property value="#result.id" />','<%=Constants.ENABLE%>');"><s:text name="res.enable"/></a><span class="STYLE1">]</span>
										</s:if>
										<s:else>
											<span class="STYLE1">[</span><a href="javascript:void(0);" onclick="javascript:return disable_data('<s:property value="#result.id" />','<%=Constants.DISABLE%>');"><s:text name="res.disable"/></a><span class="STYLE1">]</span>
										</s:else>
									</div>
								</td>
							</s:if>
						</tr>
						</s:iterator>
					</s:iterator>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics