📄 inbox_resultset.jsp
字号:
<%--
JavaServer Faces in Action example code, Copyright (C) 2004 Kito D. Mann.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:view>
<html>
<head>
<title>
<h:outputText value="ProjectTrack - Inbox"/>
</title>
<link rel="stylesheet" type="text/css"
href="<%= request.getContextPath() %>/stylesheet.css"/>
</head>
<body class="page-background">
<jsp:include page="/includes/header.jsp"/>
<h:form>
<h:panelGrid headerClass="page-header" styleClass="table-background"
columns="1" cellpadding="5">
<%-- Header --%>
<f:facet name="header">
<h:outputText value="Inbox - approve or reject projects"/>
</f:facet>
<%-- Panel data --%>
<h:messages globalOnly="true" styleClass="errors"/>
<h:dataTable styleClass="table-background"
rowClasses="table-odd-row,table-even-row" cellpadding="3"
value="#{inboxResultSetBean.inboxProjects}"
var="project"
binding="#{inboxResultSetBean.projectTable}">
<h:column>
<f:facet name="header">
<h:outputText styleClass="table-header" value="Project name"/>
</f:facet>
<h:outputText value="#{project.name}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText styleClass="table-header" value="Type"/>
</f:facet>
<h:outputText value="#{project.type}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText styleClass="table-header" value="Status"/>
</f:facet>
<h:outputText value="#{project.status}"/>
</h:column>
<h:column>
<h:commandLink action="#{inboxResultSetBean.approve}">
<h:outputText value="Approve"/>
</h:commandLink>
</h:column>
<h:column>
<h:commandLink action="#{inboxResultSetBean.reject}">
<h:outputText value="Reject"/>
</h:commandLink>
</h:column>
<h:column>
<h:commandLink action="#{inboxResultSetBean.details}">
<h:outputText value="Details"/>
</h:commandLink>
</h:column>
</h:dataTable>
</h:panelGrid>
<p>
<h:commandLink action="inbox">
<h:outputText value="(Switch back to normal Inbox)" styleClass="small"/>
</h:commandLink>
</p>
</h:form>
</body>
</html>
</f:view>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -