Advertisement
Guest User

Untitled

a guest
May 21st, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.83 KB | None | 0 0
  1. <ui:composition xmlns="http://www.w3.org/1999/xhtml"
  2.     xmlns:f="http://java.sun.com/jsf/core"
  3.     xmlns:h="http://java.sun.com/jsf/html"
  4.     xmlns:ui="http://java.sun.com/jsf/facelets"
  5.  xmlns:p="http://primefaces.org/ui">
  6.     <h:head>
  7.         <title>File Upload</title>
  8.     </h:head>
  9.     <h:body>
  10.     <p:tabView id="uploadProcessTabs">
  11.     <p:tab id="fileUloadTab" title="File Upload">  
  12.  <h:form id = "singleUpload">
  13.     <p:fileUpload  fileUploadListener="#{fileUploadBean.upload}" mode="advanced" dragDropSupport="true"
  14.       update="selectedFileDetails" sizeLimit="5000000" allowTypes="/(\.|\/)(docx?|xlsx?|doc|pdf|txt)$/" />
  15.     <p:outputLabel id="selectedFileDetails" value="#{fileUploadBean.selectedFilePath}"/>
  16.      <p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />
  17.        </h:form>
  18.        
  19.      
  20.         <br/>
  21.             <h:outputText value=" The following information will be uploaded. Please use " />
  22.             <!--<p:commandLink value="Edit" onclick="editDlgXL.show()" update=":dialogForm2:sheetsTableforxlsforedit" />-->
  23.             <h:outputText value=" to select/deselect business units or sheets as required." />
  24.             <br/><br/> 
  25.    
  26.             <p:dataTable var="sheet" id="sheetsTable222" value="#{dataUpldBean.XLSDataStatusDisplayListMain}"
  27.              scrollable="true" scrollHeight="350" scrollWidth="890" styleClass="scaTable"> 
  28.                 <p:column style="text-align:left" width="200">
  29.                 <f:facet name="header">
  30.                         <h:outputText value="Data Items" style="font-weight:bold;white-space:nowrap"/>
  31.                     </f:facet>             
  32.                     <h:outputText value="#{sheet.sheetName}"
  33.                     style="font-weight:bold;font-family:Verdana,Arial,Helvetica,sans-serif;color:#333333"/>                                                            
  34.                 </p:column>                
  35.                 <p:column style="text-align:left" width="100" rendered="#{sheet.timeGranularity ne null}">
  36.                 <f:facet name="header">
  37.                         <h:outputText value="Time Granularity" style="font-weight:bold;white-space:nowrap"/>
  38.                     </f:facet>             
  39.                     <h:outputText value="#{sheet.timeGranularity}"
  40.                     style="font-family:Verdana,Arial,Helvetica,sans-serif;color:#333333"/>                                                             
  41.                 </p:column>                
  42.                 <p:columns value="#{dataUpldBean.plantHeaders}" var="plant" width="100" style="text-align:center">
  43.                     <f:facet name="header">
  44.                         <h:outputText value="#{plant}" style="font-weight:bold;white-space:normal !important;"/>
  45.                     </f:facet>                                                   
  46.                     <h:outputText id="listElmStatusforxls" value="#{sheet.map[plant].status}" rendered="#{sheet.map[plant].selectedforXLS}"
  47.                     style="padding:3px; font-size:10px;font-family:Verdana,Arial,Helvetica,sans-serif;color:#333333"/>                                                                           
  48.                 </p:columns>
  49.                
  50.             </p:dataTable>
  51.            
  52.     </p:tab>
  53.            
  54.      
  55.     <p:tab id="EMPTYTAB" title="Nothing Here">
  56.     Hello
  57.     </p:tab>
  58. </p:tabView>
  59.     </h:body>
  60.    
  61. </ui:composition>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement