Skip to content
Snippets Groups Projects
Select Git revision
  • 187fa53a7219b169868718d43985785435cf347c
  • master default
  • 1.12
  • 1.11
  • 1.10
  • 1.9
  • 1.8
  • 1.7
  • 1.6-beta
9 results

manageLibrariesDialog.xhtml

Blame
  • manageLibrariesDialog.xhtml 2.14 KiB
    <ui:composition 
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:p="http://primefaces.org/ui">     
    
        <p:dialog id="manageLibrariesDlg" header="Libraries" resizable="false"
                  modal="true" widgetVar="manageLibrariesDialog">
    
            <h:form id="dependenciesForm">
                <p:dataTable id="currentDependencies" value="#{currentAnalysisEditorBean.libraries}"  var="dependency" paginator="true" rows="10" paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" >     
    
                    <p:column headerText="Filename">  
                        <h:outputText value="#{dependency}"/>
                    </p:column>  
    
                    <p:column headerText="Size" style="text-align: center">  
                        <h:outputText value="N/A [MiByte]"/>
                    </p:column> 
    
                    <p:column headerText="Options" style="text-align: center; width:40px">  
                        <p:commandButton id="deleteButton" icon="ui-icon-trash" disabled="true"/>    
                        <p:tooltip for="deleteButton" value="Delete Library"/>
                    </p:column> 
                </p:dataTable>  
            </h:form>
    
            <p:spacer width="0" height="5"/>
            <div>
                <!-- This is the form for the uploading. -->
                <h:outputText value="Currently only *.jar-Dependencies can be uploaded. The maximal file size is limited to 100 [MiByte]." />
                <br />
                <br />
                <h:form enctype="multipart/form-data">
                    <p:fileUpload auto="true" allowTypes="/(\.|\/)(jar)$/"  sizeLimit="104857600" mode="advanced" fileUploadListener="#{currentAnalysisEditorBean.handleFileUpload}" update=":dependenciesForm :messages :toolpalette"/>
                </h:form>
            </div>
            <hr/>
            <div style="text-align: right">
                <h:form>
                    <p:commandButton value="Ok" ajax="true" onclick="manageLibrariesDialog.hide()" />
                </h:form>
            </div>
        </p:dialog>
    </ui:composition>