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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | <!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:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:composite="http://java.sun.com/jsf/composite"> <!-- INTERFACE --> <composite:interface> <composite:attribute name="title"/> </composite:interface> <!-- IMPLEMENTATION --> <composite:implementation> <div class="map"> <div style="padding-bottom: 10px;"> <hutputText value="#{cc.attrs.title}" style="color: blue"/> </div> <h:panelGrid columns="1"> <h:panelGroup> <div style="padding-left: 5px;"> <i> <hutputText value="#{cc.parent.attrs.location.streetAddress}, "/> </i> <hutputText value=" #{cc.parent.attrs.location.city}" /> <hutputText value="#{cc.parent.attrs.location.state}"/><hr/> </div> </h:panelGroup> <h:panelGrid columns="2"> <div style="padding-right: 10px;margin-bottom: 10px;font-size:14px"> #{msgs.zoomPrompt} </div> <h:selectOneMenu onchange="submit()" value="#{cc.parent.attrs.location.zoomIndex}" valueChangeListener="#{cc.parent.attrs.location.zoomChanged}" style="font-size:13px;font-familyalatino"> <f:selectItems value="#{cc.parent.attrs.location.zoomLevelItems}"/> </h:selectOneMenu> </h:panelGrid> <h:graphicImage url="#{cc.parent.attrs.location.mapUrl}" style="border: thin solid gray"/> </h:panelGrid> </div> </composite:implementation> </html> |
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 | <!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:h="http://java.sun.com/jsf/html" xmlns:composite="http://java.sun.com/jsf/composite"> <!-- INTERFACE --> <composite:interface> <composite:attribute name="title"/> </composite:interface> <!-- IMPLEMENTATION --> <composite:implementation> <div class="weather"> <div style="padding-bottom: 10px;"> <hutputText value="#{cc.attrs.title}" style="color: blue"/> </div> <div style="margin-top: 10px;width:250px;"> <hutputText style="font-size: 12px;" value="#{cc.parent.attrs.location.weather}" escape="false"/> </div> </div> </composite:implementation> </html> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |