Subversion Repository Public Repository

ramani

Diff Revisions 377 vs 478 for /Ramani/web/cadastros/criarSelecaoSnowballingInterativoVarios.xhtml

Diff revisions: vs.
  @@ -31,9 +31,9 @@
31 31 ajax="false"
32 32 icon="ui-icon-arrowthick-1-e"
33 33 iconPos="right"/>
34 - <p:commandButton value="Enviar"
35 - title="Fazer upload das sementes e salvá-las no banco de dados"
36 - action="#{snowballingBean.processarArquivoSnowballing()}"
34 + <p:commandButton value="Processar Arq."
35 + title="Obtem as sementes que se encontram no arquivo"
36 + action="#{snowballingBean.processarArquivoSnowballing}"
37 37 style="width: 99%"
38 38 disabled="#{snowballingBean.desabilitarBotaoEnviar}"
39 39 ajax="false"
  @@ -114,7 +114,7 @@
114 114 <p:growl/>
115 115 <h:panelGrid columns="2">
116 116 <p:selectOneMenu value="#{snowballingBean.projeto}"
117 - required="true"
117 + required="false"
118 118 requiredMessage="A escolha do projeto é obrigatória.">
119 119 <f:selectItem itemLabel="Selecione um projeto"/>
120 120 <f:selectItems value="#{snowballingBean.projetos}"
  @@ -135,15 +135,20 @@
135 135 <hr/>
136 136 <br/>
137 137 <p:growl/>
138 - <h:panelGrid columns="1"
139 - width="100%">
140 - <p:fileUpload value="#{snowballingBean.arquivo}"
138 +
139 + <h:form enctype="multipart/form-data">
140 + <p:fileUpload fileUploadListener="#{snowballingBean.handleFileUpload}" mode="advanced" dragDropSupport="false" requiredMessage="O Upload do arquivoé obrigatorio!"
141 + update="messages"
142 + sizeLimit="100000"
143 + allowTypes="/(\.|\/)(txt)$/"
141 144 required="true"
142 - requiredMessage="O upload do arquivo é obrigatório."
143 - mode="simple"
144 - allowTypes="\.txt"
145 - style="border-style: groove;"/>
146 - </h:panelGrid>
145 + cancelLabel="Cancelar"
146 + uploadLabel="Enivar"
147 + label="Escolher"
148 + />
149 + <p:growl id="messages" showDetail="true" />
150 + </h:form>
151 +
147 152 </p:panel>
148 153 </p:tab>
149 154 <p:tab id="conferencias"
  @@ -164,6 +169,7 @@
164 169 var="conf"
165 170 itemLabel="#{conf.sigla} - #{conf.nome}"/>
166 171 <f:converter converterId="ConferenciaConverter"/>
172 + <p:ajax immediate="true"/>
167 173 </p:selectManyCheckbox>
168 174 </p:panel>
169 175 </p:tab>
  @@ -256,11 +262,11 @@
256 262 </p:column>
257 263 <p:column>
258 264 <p:commandButton title="Remover seleção"
259 - action="#{snowballingBean.removerSelecao()}"
265 + action="#{snowballingBean.removerSelecao}"
260 266 ajax="false"
261 267 icon="ui-icon-minusthick">
262 268 <f:setPropertyActionListener value="#{sel}"
263 - target="#{snowballingBean.selecao}"/>
269 + target="#{snowballingBean.selecao}" />
264 270 </p:commandButton>
265 271 </p:column>
266 272 </p:dataTable>
  @@ -270,11 +276,12 @@
270 276 var="sel">
271 277 <h:column>
272 278 <p:commandButton title="Selecionar artigo #{snowballingBean.selecoes.indexOf(sel) + 1}"
273 - action="#{snowballingBean.escolherSelecao()}"
279 + action="#{snowballingBean.escolherSelecao}"
274 280 ajax="false"
275 281 icon="ui-icon-check">
276 282 <f:setPropertyActionListener value="#{sel}"
277 283 target="#{snowballingBean.selecao}"/>
284 +
278 285 </p:commandButton>
279 286 </h:column>
280 287 <h:column>
  @@ -300,7 +307,7 @@
300 307 </h:column>
301 308 </h:dataTable>
302 309
303 - <!-- <h:panelGrid columns="1"
310 + <h:panelGrid columns="1"
304 311 width="100%">
305 312 <p:selectManyMenu value="#{snowballingBean.artigosSelecionados}"
306 313 showCheckbox="true"
  @@ -319,7 +326,7 @@
319 326 <hr/>
320 327 </p:column>
321 328 </p:selectManyMenu>
322 - </h:panelGrid>-->
329 + </h:panelGrid>
323 330 </p:panel>
324 331 </p:tab>
325 332 <p:tab id="resultado"