Questions tagged as 'primefaces'

1
answer

After registration, datatable is not updated

I have a problem where after registration my dataTable is not updated. My button: <p:commandButton value="#{msg['salvar']}" action="#{encomendaController.salvar}" update="@form,:listaEncomendas:messages,:listaEncomendas:view...
asked by 04.09.2017 / 17:56
1
answer

submit part of the form - jsf primefaces

I'm trying to post a part of the form but I've already tried it in some ways and I'm still in trouble. Follow a print from the screen click to see the image <h:form id="QuestaoCreateForm"> <h:panelGroup id="display">...
asked by 16.08.2017 / 01:45
0
answers

Replace RequestContext with FacesContext

I currently use the following functions that are Primefaces : RequestContext.getCurrentInstance().update("ComponentTal") RequestContext.getCurrentInstance().execute("FuncaoJavaScript") How can I replace them using...
asked by 24.08.2017 / 14:18
1
answer

How to change the blue / red color of an edited field

I have the following screen: link How can I change the field, from the list, forecast1 so that it becomes red or blue as I edit it and saved by changing its value. Follow xhtml. <p:dataTable id="produtosTable" val...
asked by 24.07.2017 / 22:22
1
answer

Editing a record with Daialog framework of primefaces

I am a beginner in the world java and java web, starting with jsf, primefaces and I have a problem that I can not solve. I have a dataTable listing some data, I have the ajax event to select a field in the table and an edit button. when doing th...
asked by 18.07.2017 / 15:41
0
answers

Bar Chart PrimeFaces

Does anyone know how to leave the primefaces bar chart this way? Itriedtodohereonlythatitalternatescolors,itleavesforexampleinvesofthreecolumnsblue,1blue,1red,1yellow,1greenand1purple.Code:privatevoidcreateBarModels(){testeGrafico=initBarModel2...
asked by 31.08.2017 / 20:06
1
answer

Corrupted image using UploadedFile of primefaces with FTPClient

Hello everyone, I have a problem with the "File Upload" component of Primefaces. When trying to save the file via "FtpClient" the file gets corrupted. Form configuration <h:form id="formNavegacao" enctype="multipart/form-data"> The...
asked by 11.07.2017 / 21:54
1
answer

Prime components do not appear

My web.xml. <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/ja...
asked by 22.06.2017 / 22:11
0
answers

Poll component does not call method

I'm trying to call a method periodically, but listner of poll does not call the method you want. Below my codes: <p:poll interval="10" update=":listaEncomendas:viewFull:resultadoPendentes,msgAtualizacao" listener="...
asked by 14.06.2017 / 19:20
0
answers

Help with search screen

Thequerythatmountsthescreenisasfollows:publicList<Produto>listarProdutosDoGerenteRegional(){try{returnmanager.createQuery(" select p from Produto p where p.gerenteFilial.chefe.codigo =:codigo", Produto.class) .setParameter...
asked by 26.06.2017 / 23:26