📄 recordcreate.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.record_title_inputRecord}"/></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.record_title_inputRecord}" styleClass="headerText"/>
<h:form id="recordForm">
<table>
<tr>
<td>
<h:outputLabel for="categoryId">
<h:outputText id="recordCategoryIdLabel" value="#{msgs.product_categoryId}"/>
</h:outputLabel>
</td>
<td>
<h:selectOneListbox id="categoryId" size="1" value="#{recordBean.categoryId}" immediate="true"
onchange="submit()"
valueChangeListener="#{recordBean.changeCategory}">
<f:selectItems value="#{recordBean.categoryItems}"/>
</h:selectOneListbox>
<h:message styleClass="errorMessage" for="categoryId"/>
</td>
</tr>
<tr>
<td>
<h:outputLabel for="productId">
<h:outputText id="recordProductIdLabel" value="#{msgs.record_productId}"/>
</h:outputLabel>
</td>
<td>
<h:selectOneListbox id="productId" size="1" value="#{recordBean.productId}">
<f:selectItems value="#{recordBean.productItems}"/>
</h:selectOneListbox>
<!--
<h:message styleClass="errorMessage" for="productId"/>
-->
</td>
</tr>
<tr>
<td>
<h:outputLabel for="type">
<h:outputText id="recordTypeLabel" value="#{msgs.record_type}"/>
</h:outputLabel>
</td>
<td>
<h:selectOneListbox id="type" size="1" value="#{recordBean.type}">
<f:selectItems value="#{recordBean.recordTypeItems}"/>
</h:selectOneListbox>
<h:message styleClass="errorMessage" for="type"/>
</td>
</tr>
<tr>
<td>
<h:outputLabel for="num">
<h:outputText id="recordNumLabel" value="#{msgs.record_num}"/>
</h:outputLabel>
</td>
<td>
<h:inputText value="#{recordBean.num}" id="num" required="true"/>
<h:message styleClass="errorMessage" for="num"/>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<h:commandButton value="#{msgs.create}" action="#{recordBean.createAction}"/>
<h:commandButton value="#{msgs.cancel}" action="home" immediate="true"/>
</td>
</tr>
<tr >
<td colspan="2" align="center">
<h:messages errorClass="errorMessage" globalOnly="true"/>
</td>
</tr>
</table>
</h:form>
<%@ include file="../footer.jsp" %>
</center>
</body>
</html>
</f:view>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -