1 | <hutputText value="${entity[fieldName]}"/> |
1 | <a:column entity="${cd}" fieldName="title" backingBean="${CDManagerBean}"/> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <?xml version="1.0"?> <!DOCTYPE facelet-taglib PUBLIC "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN" "facelet-taglib_1_0.dtd"> <facelet-taglib> <namespace>http://www.arc-mind.com/jsf</namespace> <tag> <tag-name>field</tag-name> <source>field.xhtml</source> </tag> <tag> <tag-name>column</tag-name> <source>column.xhtml</source> </tag> <tag> <tag-name>columnCommand</tag-name> <source>columnCommand.xhtml</source> </tag> </facelet-taglib> |
1 2 3 4 5 6 | <context-param> <param-name>facelets.LIBRARIES</param-name> <param-value> /WEB-INF/facelets/tags/arcmind.taglib.xml </param-value> </context-param> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <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"> ... ... <a:column entity="${cd}" fieldName="title" backingBean="${CDManagerBean}"/> <a:column entity="${cd}" fieldName="artist" backingBean="${CDManagerBean}"/> <a:column entity="${cd}" fieldName="price" backingBean="${CDManagerBean}" sort="${false}"/> <a:columnCommand label="Edit" action="editCD" backingBean="${CDManagerBean}"/> |
1 | xmlns:a="http://www.arc-mind.com/jsf" |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <h:form id="cdForm"> <h:inputHidden id="cdid" value="#{CDManagerBean.cd.id}" /> <h:panelGrid id="formGrid" columns="3" rowClasses="row1, row2"> <!-- Title --> <hutputLabel id="titleLabel" for="title" styleClass="label" value="Title" /> <h:inputText id="title" value="#{CDManagerBean.cd.title}" required="true" /> <h:message id="titleMessage" for="title" styleClass="errorText"/> <!-- Artist --> <hutputLabel id="artistLabel" for="artist" styleClass="label" value="Artist" /> <h:inputText id="artist" value="#{CDManagerBean.cd.artist}" required="true" /> <h:message id="titleMessage" for="artist" styleClass="errorText"/> <!-- Price --> <hutputLabel id="priceLabel" for="price" styleClass="label" value="rice" /> <h:inputText id="price" value="#{CDManagerBean.cd.price}" required="true"> <f:validateDoubleRange minimum="15.0" maximum="100.0" /> </h:inputText> <h:message id="priceMessage" for="price" styleClass="errorText"/> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |