⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 productedit.jsp

📁 Hibernate (著译者: 陈天河等)项目开发宝典本书以Hibernate为核心
💻 JSP
字号:
<!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>
	<f:loadBundle basename="resources.Messages" var="msgs"/>
	<html>
		<head>
			<title><h:outputText value="#{msgs.product_title_inputProduct}"/></title>
			<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/pub/css/stylesheet.css"/>
		</head>
		<body>
			<center>
			<%@ include file="../header.jsp" %>
			<h:outputText value="#{msgs.product_title_inputProduct}" styleClass="headerText"/>
			<h:form id="productForm">
				<table>
					<tr>
						<td>
							<h:outputLabel for="categoryId">
								<h:outputText id="productCategoryIdLabel" value="#{msgs.product_categoryId}"/>
							</h:outputLabel>
						</td>
						<td>
							<h:selectOneListbox id="categoryId" size="1" value="#{productBean.categoryId}">
								<f:selectItems value="#{categoryListBean.categoryItems}"/>
							</h:selectOneListbox>
							<h:message styleClass="errorMessage" for="categoryId"/>							
						</td>
					</tr>
					<tr>
						<td>
							<h:outputLabel for="name">
								<h:outputText id="productNameLabel" value="#{msgs.product_name}"/>
							</h:outputLabel>
						</td>
						<td>
							<h:inputText value="#{productBean.name}" id="name" required="true"/>
							<h:message styleClass="errorMessage" for="name"/>							
						</td>
					</tr>
					<tr>
						<td>
							<h:outputLabel for="description">
								<h:outputText id="productDescriptionLabel" value="#{msgs.product_description}"/>
							</h:outputLabel>
						</td>
						<td>
							<h:inputText value="#{productBean.description}" id="description" required="true"/>
							<h:message styleClass="errorMessage" for="description"/>							
						</td>
					</tr>
              		<tr>
              			<td align="center" colspan="2">
                    		<h:commandButton value="#{msgs.edit}" action="#{productBean.updateAction}"/>
                    		<h:commandButton value="#{msgs.cancel}" action="cancel" immediate="true"/>
                  		</td>
              		</tr>
              		<tr >
              			<td colspan="2" align="center">
                    		<h:messages errorClass="errorMessage" globalOnly="true"/>
                    		<h:inputHidden value="#{productBean.id}" id="productId"/>
                    	</td>
                	</tr>
   				</table>
			</h:form>
			<%@ include file="../footer.jsp" %>
			</center>
		</body>
	</html>
</f:view>

⌨️ 快捷键说明

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