每条知识都必须在系统内具有一个单一、清晰和权威的表示。我的 CAD/CAM 应用程序并不符合 DRY 原则 — 它具有太多关注点之间的交叉 — 因此在一个地方所做的更改常常会在其他地方引起意想不到的更改。
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 | <!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:ui="http://java.sun.com/jsf/facelets"> <h:head> <title> <ui:insert name="windowTitle"> #{msgs.placesWindowTitle} </ui:insert> </title> </h:head> <h:body> <hutputScript library="javascript" name="util.js" target="head"/> <hutputStylesheet library="css" name="styles.css" target="body"/> <div class="pageHeading"> <ui:insert name="heading"> #{msgs.placesHeading} </ui:insert> </div> <div class="menuAndContent"> <div class="menuLeft"> <ui:insert name="menuLeft"/> </div> <div class="content" style="display: #{places.showContent}"> <ui:insert name="content"/> </div> <div class="menuRight"> <ui:insert name="menuRight"> <ui:include src="/sections/shared/sourceViewer.xhtml"/> </ui:insert> </div> </div> </h:body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 | <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" template="/templates/masterLayout.xhtml"> <ui:define name="menuLeft"> <ui:include src="/sections/login/menuLeft.xhtml"/> </ui:define> <ui:define name="content"> <ui:include src="/sections/login/content.xhtml"/> </ui:define> </ui:composition> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" template="/templates/masterLayout.xhtml"> <ui:define name="content"> <ui:include src="/sections/showSource/content.xhtml"/> </ui:define> <ui:define name="menuLeft"> <ui:include src="/sections/showSource/menuLeft.xhtml"/> </ui:define> <ui:define name="menuRight"> <ui:include src="/sections/showSource/menuRight.xhtml"/> </ui:define> </ui:composition> |
1 2 3 4 5 6 7 8 9 10 11 12 13 | <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" template="/templates/masterLayout.xhtml"> <ui:define name="menuLeft"> <ui:include src="/sections/places/menuLeft.xhtml"/> </ui:define> <ui:define name="content"> <ui:include src="/sections/places/content.xhtml"/> </ui:define> </ui:composition> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |