?? listorders.jsp
字號:
<%@ page language="java" pageEncoding="gb2312"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>JSF 登錄界面</title>
<script language="JavaScript">
<!--
function CheckInformation()
{
if (login.number.value==""){
alert("學(xué)號不能為空!");
return false;
}
if (document.getElementById("pwd").value==""){
alert("密碼不能為空!");
return false;
}
login.submit();
}
-->
</script>
</head>
<body>
<f:view>
<h:form id="orderForm">
<h:panelGrid columns="8" style="background-color: #0080FF">
<h:outputLabel for="number" value="訂單號:"></h:outputLabel>
<h:inputText id="number" value="#{orderBean.number}"></h:inputText>
<h:commandButton value="查詢" action="#{orderBean.queryByNumber}"></h:commandButton>
<h:messages layout="table"></h:messages>
</h:panelGrid>
<h:panelGrid columns="4">
<h:outputLabel for="customer" value="客戶:"></h:outputLabel>
<h:inputText id="customer" value="#{orderBean.customer}"></h:inputText>
<h:outputLabel for="bizDate" value="業(yè)務(wù)日期:"></h:outputLabel>
<h:inputText id="bizDate" value="#{orderBean.bizDate}">
<f:convertDateTime pattern="yyyy-MM-dd" />
</h:inputText>
</h:panelGrid>
<h:dataTable border="1" id="orderItem"
value="#{orderBean.orderItemBeans}" first="0" rows="5"
var="orderItemBean" rendered="true" style="background-color: #C0C0C0">
<input name="" />
<h:column id="column1">
<f:facet name="header">
<h:outputText value="物料"></h:outputText>
</f:facet>
<h:inputText id="name" value="#{orderItemBean.name}"></h:inputText>
</h:column>
<h:column id="column2">
<f:facet name="header">
<h:outputText value="數(shù)量"></h:outputText>
</f:facet>
<h:inputText value="#{orderItemBean.qty}"></h:inputText>
</h:column>
<h:column id="column3">
<f:facet name="header">
<h:outputText value="單價" id="text3"></h:outputText>
</f:facet>
<h:inputText value="#{orderItemBean.price}"></h:inputText>
</h:column>
<h:column id="column4">
<f:facet name="header">
<h:outputText value="金額" id="text4"></h:outputText>
</f:facet>
<h:inputText value="#{orderItemBean.amt}"></h:inputText>
</h:column>
</h:dataTable>
</h:form>
</f:view>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -