Subversion Repository Public Repository

ramani

Diff Revisions 569 vs 570 for /Ramani/web/cadastros/criarSelecaoUpload.xhtml

Diff revisions: vs.
  @@ -1,118 +1,85 @@
1 + <?xml version="1.0" encoding="UTF-8"?>
1 2 <!DOCTYPE html>
2 3 <html xmlns="http://www.w3.org/1999/xhtml"
3 4 xmlns:ui="http://java.sun.com/jsf/facelets"
4 - xmlns:p="http://primefaces.org/ui"
5 5 xmlns:h="http://java.sun.com/jsf/html"
6 + xmlns:p="http://primefaces.org/ui"
6 7 xmlns:f="http://java.sun.com/jsf/core">
8 +
7 9 <h:head/>
8 10 <h:body>
9 11 <ui:composition template="../template.xhtml">
10 12 <ui:define name="caminho">
11 - <h:outputLabel value="#{msg['criarSelecaoUpload.Caminho']}"
12 - style="font-weight: bold"/>
13 + <h:outputLabel value="#{msg['criarSelecaoUpload.Caminho']}"
14 + style="font-weight: bold"/>
13 15 </ui:define>
14 16
15 17 <ui:define name="conteudoCentro">
16 18 <p:layout>
17 - <h:form id="form"
18 - enctype="multipart/form-data">
19 - <p:layoutUnit position="west">
20 - <h:panelGroup id="pgroup">
21 - <center>
22 - <h:outputLabel value="#{msg['criarSelecaoUpload.Menu']}"
23 - style="font-weight: bold; font-size: 25px"/>
24 - <hr/>
25 - <p:commandButton value="#{msg['criarSelecaoUpload.Enviar']}"
26 - title="#{msg['criarSelecaoUpload.FazerUpload']}"
27 - action="#{uploadBean.criarSelecoes()}"
28 - style="width: 99%"
29 - disabled="#{uploadBean.desabilitarBotaoAnterior or uploadBean.wizard.step.equals('proj')}"
30 - ajax="false"
31 - icon="ui-icon-extlink"
32 - iconPos="right"/>
33 - <p:commandButton value="#{msg['criarSelecaoUpload.Proximo']}"
34 - title="#{msg['criarSelecaoUpload.ProximaTab']}"
35 - onclick="wiz.next()"
36 - style="width: 99%"
37 - update="pgroup"
38 - disabled="#{uploadBean.wizard.step.equals('upl')}"
39 - icon="ui-icon-arrowthick-1-e"
40 - iconPos="right"/>
41 - <p:commandButton value="#{msg['criarSelecaoUpload.Anterior']}"
42 - title="#{msg['criarSelecaoUpload.TabAnterior']}"
43 - onclick="wiz.back()"
44 - style="width: 99%"
45 - update="pgroup"
46 - disabled="#{uploadBean.desabilitarBotaoAnterior or uploadBean.wizard.step.equals('proj')}"
47 - icon="ui-icon-arrowthick-1-w"
48 - iconPos="right"/>
49 - <p:commandButton value="#{msg['criarSelecaoUpload.Voltar']}"
50 - title="#{msg['criarSelecaoUpload.VoltarPaginaInicial']}"
51 - action="/projeto/listarProjetos.xhtml"
52 - style="width: 99%"
53 - immediate="true"
54 - ajax="false"
55 - icon="ui-icon-arrowreturnthick-1-w"
56 - iconPos="right"/>
57 - </center>
58 - </h:panelGroup>
59 - </p:layoutUnit>
19 +
20 + <h:form id="form" enctype="multipart/form-data">
60 21 <p:layoutUnit position="center">
61 22 <center>
62 23 <h:outputLabel value="#{msg['criarSelecaoUpload.SelecaoArtigosUpload']}"
63 24 style="font-weight: bold; font-size: 25px"/>
64 25 </center>
65 - <hr/>
66 - <p:panel style="border-color: transparent">
67 - <p:wizard widgetVar="wiz"
68 - binding="#{uploadBean.wizard}"
69 - flowListener="#{uploadBean.onFlowProcess}"
70 - showNavBar="false">
71 - <p:tab id="proj"
72 - title="#{msg['criarSelecaoUpload.Projeto']}">
26 + <br/>
27 + <p:panel>
28 + <p:wizard nextLabel="Proximo" backLabel="Anterior">
29 +
30 + <p:tab id="tabProj" title="#{msg['criarSelecaoUpload.Projeto']}">
73 31 <p:panel>
74 32 <h:outputLabel value="#{msg['criarSelecaoUpload.EscolhaProjeto']}"
75 33 style="color: blue; font-weight: bold"/>
76 34 <hr/>
77 - <br/>
78 - <p:growl/>
35 +
79 36 <h:panelGrid columns="1"
80 37 width="100%">
81 38 <p:selectOneMenu value="#{uploadBean.projeto}"
82 - converter="ProjetoConverter"
83 - required="true"
84 - requiredMessage="#{msg['criarSelecaoUpload.EscolhaProjetoObrigatoria']}">
85 - <f:selectItem itemLabel="#{msg['criarSelecaoUpload.SelecioneProjeto']}"/>
39 + converter="ProjetoConverter" >
86 40 <f:selectItems value="#{uploadBean.projetos}"
87 41 var="projeto"
88 42 itemLabel="#{projeto.titulo}"/>
89 43 </p:selectOneMenu>
90 44 </h:panelGrid>
45 +
91 46 </p:panel>
92 47 </p:tab>
93 - <p:tab id="upl"
94 - title="#{msg['criarSelecaoUpload.Upload']}">
48 +
49 + <p:tab id="uploadSelct" title="#{msg['criarSelecaoUpload.Upload']}">
50 + <p:growl showSummary="true" showDetail="true"/>
95 51 <p:panel>
96 52 <h:outputLabel value="#{msg['criarSelecaoUpload.FacaUpload']}"
97 53 style="color: blue; font-weight: bold"/>
54 + <br/>
98 55 <h:outputText value="#{msg['criarSelecaoUpload.PadraoUpload']}"
99 56 style="color: blue; font-style: italic"/>
100 57 <hr/>
101 58 <br/>
102 - <p:growl/>
103 - <h:panelGrid columns="1"
104 - width="100%">
105 - <p:fileUpload value="#{uploadBean.arquivo}"
106 - required="true"
107 - requiredMessage="#{msg['criarSelecaoUpload.UploadObrigatorio']}"
108 - mode="simple"
109 - allowTypes="\.txt"
110 - oncomplete="/projeto/listarProjetos.xhtml"
111 - style="border-style: groove;"/>
112 - </h:panelGrid>
59 +
60 + <p:fileUpload value="#{uploadBean.arquivo}"
61 + required="true"
62 + requiredMessage="#{msg['criarSelecaoUpload.UploadObrigatorio']}"
63 + mode="simple"
64 + allowTypes="\.txt"
65 + style="border: 1px solid #ccc; padding: 5px;"
66 + immediate="true"
67 + />
68 +
69 + <p:commandButton value="#{msg['criarSelecaoUpload.Enviar']}"
70 + title="#{msg['criarSelecaoUpload.FazerUpload']}"
71 + action="#{uploadBean.criarSelecoes}"
72 + ajax="false"
73 + style="margin-left: 10px"
74 + icon="ui-icon-extlink"
75 + iconPos="right"/>
76 +
113 77 </p:panel>
114 - </p:tab>
115 - </p:wizard>
78 +
79 + </p:tab>
80 +
81 + </p:wizard>
82 +
116 83 </p:panel>
117 84 </p:layoutUnit>
118 85 </h:form>