1 2 3 4 5 6 7 8 9 10 11 | <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:places="http://java.sun.com/jsf/composite/components/places"> <h:form id="form"> <ui:repeat value="#{places.placesList}" var="place"> <places:place location="#{place}"/> </ui:repeat> </h:form> </ui:composition> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <!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:composite="http://java.sun.com/jsf/composite" xmlns:places="http://java.sun.com/jsf/composite/components/places"> <!-- INTERFACE --> <composite:interface> <composite:attribute name="location" required="true"/> </composite:interface> <!-- IMPLEMENTATION --> <composite:implementation> <div class="placeHeading"> <places:map title="Map"/> <places:weather title="Weather"/> </div> </composite:implementation> </html> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |