new.jsp
来自「一个购房管理系统,JSF+Hibernate+Mssql2」· JSP 代码 · 共 38 行
JSP
38 行
<%@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 House</title>
</head>
<body>
<f:view>
<f:loadBundle basename="resources" var="label"/>
<h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
<h:graphicImage url="../images/45.jpg" width="830" height="60"></h:graphicImage>
<h:form>
<h:panelGrid columns="2">
<h:outputText value="#{label.HouseName}"/>
<h:inputText id="houseName" value="#{house.house.houseName}" title="HouseName" />
<h:outputText value="#{label.HouseState}"/>
<h:selectOneMenu id="houseState" value="#{house.house.houseState}" title="HouseState" >
<f:selectItem itemValue="空闲" itemLabel="空闲" />
<f:selectItem itemValue="已预定" itemLabel="已预定" />
<f:selectItem itemValue="已售出" itemLabel="已售出" />
</h:selectOneMenu>
<h:outputText value="#{label.StyleID}" rendered="#{house.house.houseStyle == null}"/>
<h:selectOneMenu id="styleID" value="#{house.house.houseStyle}" title="StyleID" rendered="#{house.house.houseStyle == null}">
<f:selectItems value="#{house.styleIDs}"/>
</h:selectOneMenu>
<h:outputText value="#{label.Bz}"/>
<h:inputTextarea id="bz" value="#{house.house.bz}" title="Bz" />
<h:commandButton action="#{house.create}" value="#{label.Create}"/>
<h:commandButton action="house_list" value="#{label.ShowAllHouse}"/>
</h:panelGrid>
</h:form>
</f:view>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?