Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ui:composition 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:p="http://primefaces.org/ui">
- <h:head>
- <title>File Upload</title>
- </h:head>
- <h:body>
- <p:tabView id="uploadProcessTabs">
- <p:tab id="fileUloadTab" title="File Upload">
- <h:form id = "singleUpload">
- <p:fileUpload fileUploadListener="#{fileUploadBean.upload}" mode="advanced" dragDropSupport="true"
- update="selectedFileDetails" sizeLimit="5000000" allowTypes="/(\.|\/)(docx?|xlsx?|doc|pdf|txt)$/" />
- <p:outputLabel id="selectedFileDetails" value="#{fileUploadBean.selectedFilePath}"/>
- <p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />
- </h:form>
- <br/>
- <h:outputText value=" The following information will be uploaded. Please use " />
- <!--<p:commandLink value="Edit" onclick="editDlgXL.show()" update=":dialogForm2:sheetsTableforxlsforedit" />-->
- <h:outputText value=" to select/deselect business units or sheets as required." />
- <br/><br/>
- <p:dataTable var="sheet" id="sheetsTable222" value="#{dataUpldBean.XLSDataStatusDisplayListMain}"
- scrollable="true" scrollHeight="350" scrollWidth="890" styleClass="scaTable">
- <p:column style="text-align:left" width="200">
- <f:facet name="header">
- <h:outputText value="Data Items" style="font-weight:bold;white-space:nowrap"/>
- </f:facet>
- <h:outputText value="#{sheet.sheetName}"
- style="font-weight:bold;font-family:Verdana,Arial,Helvetica,sans-serif;color:#333333"/>
- </p:column>
- <p:column style="text-align:left" width="100" rendered="#{sheet.timeGranularity ne null}">
- <f:facet name="header">
- <h:outputText value="Time Granularity" style="font-weight:bold;white-space:nowrap"/>
- </f:facet>
- <h:outputText value="#{sheet.timeGranularity}"
- style="font-family:Verdana,Arial,Helvetica,sans-serif;color:#333333"/>
- </p:column>
- <p:columns value="#{dataUpldBean.plantHeaders}" var="plant" width="100" style="text-align:center">
- <f:facet name="header">
- <h:outputText value="#{plant}" style="font-weight:bold;white-space:normal !important;"/>
- </f:facet>
- <h:outputText id="listElmStatusforxls" value="#{sheet.map[plant].status}" rendered="#{sheet.map[plant].selectedforXLS}"
- style="padding:3px; font-size:10px;font-family:Verdana,Arial,Helvetica,sans-serif;color:#333333"/>
- </p:columns>
- </p:dataTable>
- </p:tab>
- <p:tab id="EMPTYTAB" title="Nothing Here">
- Hello
- </p:tab>
- </p:tabView>
- </h:body>
- </ui:composition>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement