new.jsp

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

JSP
46
字号
<%@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" %>
<%@taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>New Housestyle</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/46.jpg" width="830" height="60"></h:graphicImage>
            <h:form  enctype="multipart/form-data">
                <h:panelGrid columns="2">                   
                    <h:outputText value="#{label.StyleName}"/>
                    <h:inputText id="styleName" value="#{housestyle.housestyle.styleName}" title="StyleName" />
                    <h:outputText value="#{label.BuildingArea}"/>
                    <h:inputText id="buildingArea" value="#{housestyle.housestyle.buildingArea}" title="BuildingArea" />
                    <h:outputText value="#{label.InsideArea}"/>
                    <h:inputText id="insideArea" value="#{housestyle.housestyle.insideArea}" title="InsideArea" />
                    <h:outputText value="#{label.Others}"/>
                    <h:inputText id="others" value="#{housestyle.housestyle.others}" title="Others" />
                    <h:outputText value="#{label.Price}"/>
                    <h:inputText id="price" value="#{housestyle.housestyle.price}" title="Price">
						<f:converter converterId="javax.faces.Long" />
					</h:inputText>
                    <h:outputText value="#{label.Image}"/>
                    <x:inputFileUpload id="image1" value="#{housestyle.image}"
						storage="file" required="false" />                    
                    <h:outputText value="#{label.Bz}"/>
                    <h:inputText id="bz" value="#{housestyle.housestyle.bz}" title="Bz" />
                    <h:outputText value="#{label.BuildingName}" rendered="#{housestyle.housestyle.building == null}"/>
                    <h:selectOneMenu id="buildingID" value="#{housestyle.housestyle.building}" title="BuildingID" rendered="#{housestyle.housestyle.building == null}">
                        <f:selectItems value="#{housestyle.buildingIDs}"/>
                    </h:selectOneMenu>
                    <h:commandButton action="#{housestyle.create}" value="#{label.Create}"/>               
                	<h:commandButton action="housestyle_list" value="#{label.ShowAllHouseStyle}"/>   
                </h:panelGrid>                             
            </h:form>
        </f:view>
    </body>
</html>

⌨️ 快捷键说明

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