📄 edit.jsp
字号:
<%@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>Edit 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/22.jpg" width="830" height="60"></h:graphicImage>
<h:form enctype="multipart/form-data">
<h:inputHidden value="#{housestyle.housestyle}" immediate="true"/>
<h:panelGrid columns="2">
<h:outputText value="#{label.StyleID}"/>
<h:outputText value="#{housestyle.housestyle.styleId}" title="StyleID" />
<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.BuildingID}"/>
<h:selectOneMenu id="buildingID" value="#{housestyle.housestyle.building}" title="BuildingID">
<f:selectItems value="#{housestyle.buildingIDs}"/>
</h:selectOneMenu>
<h:commandButton action="#{housestyle.edit}" value="#{label.Save}"/>
<h:commandButton action="housestyle_list" value="#{label.ShowAllHouseStyle}"/>
</h:panelGrid>
</h:form>
</f:view>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -