Advertisement
Guest User

Primefaces master template

a guest
Jan 10th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.31 KB | None | 0 0
  1. XHTML:
  2.  
  3. <?xml version='1.0' encoding='UTF-8' ?>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5.  
  6. <html xmlns="http://www.w3.org/1999/xhtml"
  7.      xmlns:f="http://java.sun.com/jsf/core"
  8.      xmlns:t="http://myfaces.apache.org/tomahawk"
  9.      xmlns:ui="http://java.sun.com/jsf/facelets"
  10.      xmlns:h="http://java.sun.com/jsf/html"
  11.      xmlns:c="http://java.sun.com/jsp/jstl/core"
  12.      xmlns:p="http://primefaces.org/ui">
  13.     <f:view locale="#{editLocale.locale}">
  14.  
  15.         <ui:insert name="metadata"/>
  16.  
  17.         <f:loadBundle basename="#{!empty pageBundle ? pageBundle : 'no.ntnu.biobank.web.localization.page.Default'}" var="page"/>
  18.  
  19.         <h:head>
  20.             <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  21.             <title>Biobank - #{page.Title}</title>
  22.             <link rel="icon" href="favicon.ico"/>
  23.             <link rel="shortcut icon" href="favicon.ico"/>
  24.             <!--h:outputStylesheet library="css" name="reset.css" /-->
  25.             <h:outputStylesheet library="css" name="content.css" />
  26.             <h:outputStylesheet library="css" name="override.css" />
  27.             <h:outputStylesheet library="css" name="extensions.css" />
  28.  
  29.             <h:outputScript library="javascript" name="BusyBox.js"/>
  30.             <h:outputScript library="javascript" name="SubmitHandler.js"/>
  31.             <h:outputScript library="javascript" name="BarCodePrintUtils.js"/>
  32.             <h:outputScript library="javascript" name="FlashStyles.js"/>
  33.         </h:head>
  34.  
  35.         <h:body lang="#{editLocale.locale.language}">
  36.  
  37.  
  38.  
  39.             <p:layout id="FullPageLayout" fullPage="true">
  40.  
  41.                 <p:layoutUnit id="LayoutNorth" position="north" size="200">
  42.                     <div id="header">
  43.                         <ui:insert name="top">
  44.                             <ui:include src="header.xhtml" />
  45.                         </ui:insert>
  46.                     </div>
  47.                 </p:layoutUnit>
  48.  
  49.                 <p:layoutUnit id="LayoutWest" position="west" resizable="true">
  50.                     <h:form id="menuForm" enctype="#{!empty enctype ? enctype : 'application/x-www-form-urlencoded'}">
  51.  
  52.                         <p:panel header="#{menu.Header_MainMenu}" xmlns:p="http://primefaces.org/ui">
  53.                              <p:menu type="sliding">
  54.                                  <p:menuitem value="Tjohei"/>
  55.                                  <p:submenu label="Bah!">
  56.                                      <p:menuitem value="og"/>
  57.                                       <p:menuitem value="hå"/>
  58.                                   </p:submenu>
  59.                                </p:menu>
  60.                         </p:panel>
  61.  
  62.                     </h:form>
  63.                 </p:layoutUnit>
  64.  
  65.                 <p:layoutUnit id="LayoutSouth" position="south" size="40">
  66.                     <h:form id="footerForm" style="margin: 5px;">
  67.                         <ui:insert name="footer">
  68.                             <ui:include src="footer.xhtml" />
  69.                         </ui:insert>
  70.                     </h:form>
  71.                 </p:layoutUnit>
  72.  
  73.                 <p:layoutUnit id="LayoutCenter" position="center">
  74.                     <h:form id="mainForm" enctype="#{!empty enctype ? enctype : 'application/x-www-form-urlencoded'}">
  75.  
  76.                         <p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>  
  77.  
  78.                         <p:dialog modal="true" widgetVar="statusDialog" header="Status"  
  79.                                  draggable="false" closable="false" appendToBody="true" resizable="false">
  80.                             <h:panelGrid columns="1">
  81.                                 <h:outputText value="#{common.info_PleaseWait}"/>
  82.                                 <h:graphicImage library="icons_misc" name="ajax-loader-bar.gif" />  
  83.                             </h:panelGrid>
  84.                         </p:dialog>  
  85.  
  86.                         <f:subview id="attentionView">
  87.                             <p:messages id="messages" showDetail="false" showSummary="true"/>
  88.                         </f:subview>
  89.                         <ui:insert name="content" />
  90.                     </h:form>
  91.                 </p:layoutUnit>
  92.  
  93.             </p:layout>
  94.  
  95.         </h:body>
  96.     </f:view>
  97. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement