Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ui:composition template="/WEB-INF/template/LayoutPadrao.xhtml"
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:p="http://primefaces.org/ui" xmlns:o="http://omnifaces.org/ui">
- <ui:define name="titulo">Novo pedido </ui:define>
- <ui:define name="corpo">
- <h:body>
- <h:form enctype="multipart/form-data">
- <p:fileUpload fileUploadListener="#{teste.upload}" fileLimit="10" fileLimitMessage="Excedido Limite de arquivos"
- cancelLabel="Cancelar" label="Arquivo" uploadLabel="Anexar"
- invalidFileMessage="Somente arquivos .jpg, .png ou .gif"
- allowTypes="/(\.|\/)(gif|jpe?g|png)$/" value="#{teste.file}"
- mode="advanced" skinSimple="true" />
- <p:commandButton value="Enviar" ajax="false" />
- </h:form>
- </h:body>
- </ui:define>
- </ui:composition>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement