10,606
社区成员
发帖
与我相关
我的任务
分享
<c:forEach items="${aclsf.parents}" var="clsf">
<h:outputLabel> / </h:outputLabel>
<h:commandLink action="#{aclsf.toSon}">
<f:param name="currentId" value="${clsf.acid}"></f:param>
${clsf.label}
</h:commandLink>
</c:forEach>
<table>
<tr>
<td>Index</td>
<td>Label</td>
<td>操作</td>
</tr>
<c:forEach items="${aclsf.sons}" var="clsf" varStatus="status">
<tr>
<td>${status.index+1}</td>
<td><h:commandLink action="#{aclsf.toSon}">
<f:param name="currentId" value="${clsf.acid}"></f:param>
${clsf.label}
</h:commandLink></td>
<td><h:commandLink action="#{aclsf.toUpdate}"> 更新
<f:param name="currentId" value="${clsf.acid}"></f:param>
</h:commandLink> <h:commandLink action="#{aclsf.delete}">删除
<f:param name="currentId" value="${clsf.acid}"></f:param>
</h:commandLink></td>
</tr>
</c:forEach>
</table>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<head>
<base href="/Blog/" />
<title>博文分类列表</title>
<link rel="stylesheet" href="./plugins/bootstrap/css/bootstrap.css" />
</head>
<body>
<h:form id="shower">
当前位置:<h:commandLink action="#{aclsf.toTop}" >博文分类</h:commandLink>
<c:forEach items="${aclsf.parents}" var="clsf">
<h:outputLabel> / </h:outputLabel>
<h:commandLink action="#{aclsf.toSon}">
<f:param name="currentId" value="${clsf.acid}"></f:param>
${clsf.label}
</h:commandLink>
</c:forEach>
<c:if test="${!empty aclsf.current.acid}">
/${aclsf.current.label}
</c:if>
<br />
<h:commandButton value="显示全部" action="#{aclsf.toAll}"></h:commandButton>
<h:commandButton value="显示顶级" action="#{aclsf.toTop}"></h:commandButton>
<c:choose>
<c:when test="${empty aclsf.sons}">没有分类信息</c:when>
<c:otherwise>
<table>
<tr>
<td>Index</td>
<td>Label</td>
<td>操作</td>
</tr>
<c:forEach items="${aclsf.sons}" var="clsf" varStatus="status">
<tr>
<td>${status.index+1}</td>
<td><h:commandLink action="#{aclsf.toSon}">
<f:param name="currentId" value="${clsf.acid}"></f:param>
${clsf.label}
</h:commandLink></td>
<td><h:commandLink action="#{aclsf.toUpdate}"> 更新
<f:param name="currentId" value="${clsf.acid}"></f:param>
</h:commandLink> <h:commandLink action="#{aclsf.delete}">删除
<f:param name="currentId" value="${clsf.acid}"></f:param>
</h:commandLink></td>
</tr>
</c:forEach>
</table>
</c:otherwise>
</c:choose>
</h:form>
</body>
<script src="./plugins/bootstrap/js/jquery.min.js"></script>
<script src="./plugins/bootstrap/js/bootstrap.min.js"></script>
<script>
</script>
</html>