1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:z="http://www.qualcomm.com/jsf/core" xmlns:c="http://java.sun.com/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:t="http://myfaces.apache.org/tomahawk"> THIS TEXT WILL BE REMOVED <ui:composition> <!-- The label is optional. Generate it if it is missing. --> <c:if test="${empty label}"> <c:set var="label" value="${fieldName}" /> </c:if> <!-- The required attribute is optional, initialize it to true if not found. --> <c:if test="${empty required}"> <c:set var="required" value="true" /> </c:if> <hutputLabel id="${fieldName}Label" value="${label}" for="#{fieldName}" /> <h:inputText id="#{fieldName}" value="#{entity[fieldName]}" required="${required}"> <ui:insert /> </h:inputText> <!-- Display any error message that are found --> <h:message id="${fieldName}Message" style="color: red; text-decoration: overline" for="#{fieldName}" /> </ui:composition> THIS TEXT WILL BE REMOVED AS WELL </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a="http://www.arc-mind.com/jsf"> ... <h:form id="cdForm"> <!-- Title, Artist, Price --> <a:field fieldName="title" entity="#{CDManagerBean.cd}" /> <a:field fieldName="artist" entity="#{CDManagerBean.cd}" /> <a:field fieldName="price" entity="#{CDManagerBean.cd}" > <f:validateDoubleRange minimum="15.0" maximum="100.0" /> </a:field> ... |
1 2 | <h:commandLink id="#{action}" value="#{label}" action="#{backingBean[action]}"/> |
1 2 | <a:columnCommand label="Edit" action="editCD" backingBean="${CDManagerBean}"/> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:z="http://www.qualcomm.com/jsf/core" xmlns:c="http://java.sun.com/jstl/core"> THIS TEXT WILL BE REMOVED <ui:composition> <!-- The label is optional. Generate it if it is missing. --> <c:if test="${empty label}"> <c:set var="label" value="${action}" /> </c:if> <h:column> <f:facet name="header"> <h:panelGroup> <hutputText value="#{label}" /> </h:panelGroup> </f:facet> <h:commandLink id="#{action}" value="#{label}" action="#{backingBean[action]}"/> </h:column> </ui:composition> THIS TEXT WILL BE REMOVED AS WELL </html> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |