70af8122db14001c1bfdf18d36b4ce7d

来自「一个购房管理系统,JSF+Hibernate+Mssql2」· 代码 · 共 67 行

TXT
67
字号
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>New Customer</title>
	</head>
	<body>
		<center>
			<f:view>
				<f:loadBundle basename="resources" var="label" />
				<h1>
					<h:outputText value="#{label.NewCustomer}" />
				</h1>
				<h:form>
					<h:panelGrid columns="3">
						<h:outputText value="#{label.CustomerName}" />
						<h:inputText id="customerName"
							value="#{customer.customer.customerName}" title="CustomerName"
							required="true" maxlength="20" />
						<h:message for="customerName" style="color:red"></h:message>
						<h:outputText value="#{label.Password}" />
						<h:inputSecret id="password" value="#{customer.customer.password}"
							title="Password" maxlength="16" required="true">
							<f:converter converterId="javax.faces.Byte" />
						</h:inputSecret>
						<h:message for="password" style="color:red"></h:message>
						<h:outputText value="#{label.Address}" />
						<h:inputText id="address" value="#{customer.customer.address}"
							title="Address" size="30" />
						<h:message for="address" style="color:red"></h:message>
						<h:outputText value="#{label.Tel1}" />
						<h:inputText id="tel1" value="#{customer.customer.tel1}"
							title="Tel1" />
						<h:message for="tel1" style="color:red"></h:message>
						<h:outputText value="#{label.Tel2}" />
						<h:inputText id="tel2" value="#{customer.customer.tel2}"
							title="Tel2" />
						<h:message for="tel2" style="color:red"></h:message>
						<h:outputText value="#{label.Email}" />
						<h:inputText id="email" value="#{customer.customer.email}"
							title="Email" />
						<h:message for="email" style="color:red"></h:message>
						<h:outputText value="#{label.IDCard}" />
						<h:inputText id="idcard" value="#{customer.customer.idcard}"
							title="Idcard" required="true" />
						<h:message for="idcard" style="color:red"></h:message>
						<h:outputText value="#{label.Bz}" />
						<h:inputTextarea id="bz" value="#{customer.customer.bz}"
							title="Bz" cols="30" rows="5" />
						<h:message for="bz" style="color:red"></h:message>
						<h:commandButton action="#{customer.create}"
							value="#{label.Create}" />
						<br>
						<h:commandButton type="button"
							onclick="javascript:history.go(-1);" value="#{label.Back}" />
						<h:commandButton type="reset" value="#{label.Reset}" />
					</h:panelGrid>
				</h:form>
			</f:view>
		</center>

	</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?