1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
| <?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<body>
<ui:composition template="./template_utilisateur.xhtml">
<ui:define name="content">
<h:form id="form" >
<p:dataTable id="cars" var="car" value="#{histCommController.lc}" tableStyle="width:auto">
<p:column headerText="Model" style="width:100px">
<h:outputText value="#{car.id}" />
</p:column>
<p:column headerText="Year" style="width:100px">
<h:outputText value="#{car.dateEnvoi}" />
</p:column>
<p:column headerText="Manufacturer" style="width:100px">
<h:outputText value="#{car.dateLivraisonRecommande}" />
</p:column>
<p:column style="width:40px">
<h:panelGrid columns="3" styleClass="actions" cellpadding="2">
<p:commandButton id="selectButton" update=":form:dlg" oncomplete="dlg.show()" icon="ui-icon-search" title="View">
<f:setPropertyActionListener value="#{car}" target="#{histCommController.selectedCommande}" />
</p:commandButton>
</h:panelGrid>
</p:column>
</p:dataTable>
<p:commandButton oncomplete="dlg.show()" value="lancer le dialog" />
<p:dialog id="dlg" widgetVar="dlg" >
<p:commandLink id="downloadLink2" value="Download" ajax="false">
<p:fileDownload value="#{histCommController.test}" />
</p:commandLink>
<h:dataTable value="#{histCommController.selectedCommande.listFichiers}" var="jjjjj" >
<h:column>
<h:outputLabel style="font-weight: bold;" value="#{jjjjj.taille}" />
</h:column>
<h:column>
<h:outputLabel style="font-weight: bold;" value="#{jjjjj.nom}" />
</h:column>
<h:column>
<p:commandLink id="downloadLink" value="Download" ajax="false">
<p:fileDownload value="#{histCommController.test}" />
</p:commandLink>
</h:column>
</h:dataTable>
<ui:repeat value="#{histCommController.selectedCommande.listFichiers}" var="jjjjj">
<h:outputLabel style="font-weight: bold;" value="#{jjjjj.nom}" />
<h:outputLabel style="font-weight: bold;" value="#{jjjjj.taille}" />
<p:commandLink id="downloadLink" value="Download" ajax="false">
<p:fileDownload value="#{jjjjj.convertFichier}" />
</p:commandLink>
</ui:repeat>
<p:commandLink id="downloadLink" value="Download" ajax="false">
<p:fileDownload value="#{histCommController.test}" />
</p:commandLink>
</p:dialog>
</h:form>
</ui:define>
</ui:composition>
</body>
</html> |
Partager