79 lines
4.4 KiB
Plaintext
79 lines
4.4 KiB
Plaintext
<%@taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
|
|
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
|
|
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
|
|
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
|
|
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
|
|
|
|
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="100%" align="center">
|
|
<tr width="100%" align="center">
|
|
<td>
|
|
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="100%" align="center">
|
|
<tr width="100%" align="center">
|
|
<td>
|
|
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="100%" align="center">
|
|
<tr width="100%" align="center">
|
|
<td>
|
|
<rich:panel>
|
|
<f:facet name="header">
|
|
<h:outputText value="Download File" />
|
|
</f:facet>
|
|
</rich:panel>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<!-- FINE FILTRI -->
|
|
<tr width="100%" align="center">
|
|
<td>
|
|
<h:form id="updateForm">
|
|
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="50%" align="center">
|
|
<tr width="100%" align="center">
|
|
<td align="center">
|
|
<h:outputText value="Trovati #{downloadFile.resultsSize} files" />
|
|
<a4j:outputPanel id="panelListaFile" ajaxRendered="true" style="align:center;">
|
|
<!-- risultato -->
|
|
<h:panelGrid id="panelGridRisultato" columns="1" rendered="#{(downloadFile.resultsSize gt 0)}" width="100%">
|
|
<rich:dataTable value="#{downloadFile.dynamicList}" var="item" width="100%" id="listaRic" rows="25" columnClasses="col" rowKeyVar="rowKey">
|
|
<f:facet name="header">
|
|
<rich:columnGroup>
|
|
<rich:column width="5%" style="align: center;">
|
|
<h:outputText value="" />
|
|
</rich:column>
|
|
<rich:column width="65%">
|
|
<h:outputText value="Nome file" />
|
|
</rich:column>
|
|
<rich:column width="30%">
|
|
<h:outputText value="Data Creazione" />
|
|
</rich:column>
|
|
</rich:columnGroup>
|
|
</f:facet>
|
|
<rich:column style="align: center;" >
|
|
<a4j:htmlCommandLink id="DownloadButtonId2" action="#{downloadFile.download}" immediate="true">
|
|
<h:graphicImage style="margin: 2px; border: none;" value="/resources/images/drive-download.png" alt="Scarica il file #{item.fileName} " />
|
|
<f:param name="selectedCompleteFileName" value="#{item.completeFileName}"/>
|
|
<f:param name="selectedFileName" value="#{item.fileName}"/>
|
|
</a4j:htmlCommandLink>
|
|
</rich:column>
|
|
<rich:column>
|
|
<h:outputText value="#{item.fileName}" />
|
|
</rich:column>
|
|
<rich:column>
|
|
<h:outputText value="#{item.lastModified}" />
|
|
</rich:column>
|
|
<f:facet name="footer">
|
|
<rich:datascroller maxPages="15" fastStep="5" renderIfSinglePage="false" />
|
|
</f:facet>
|
|
</rich:dataTable>
|
|
</h:panelGrid>
|
|
</a4j:outputPanel>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</h:form>
|
|
</td>
|
|
</tr>
|
|
</table> |