Questions tagged as 'primefaces'

1
answer

Reading PDF with DefaultStreamedContent. How to close it?

I have a JSF page where I generate a PDF and need to show it on the screen. For this, I created a <p:media> It's working, but the PDF file gets stuck (it's never closed) and over time it ends up dropping Tomcat by Many file...
asked by 08.04.2015 / 16:10
1
answer

Generate pdf in java

Good afternoon, I would like some help regarding generating a pdf report in java. I'm using Primefaces to export this report. I created the first line with the fields as you can see in the image below, but when exporting automatically it also ge...
asked by 19.02.2016 / 18:26
1
answer

selectOneMenu Not listed correctly

I'm trying to put selectOneMenu in my code and I'm having problems. I want to list the months of the year, when clicking to select, it lists the names side by side and not one below the other as it should be. Followthecode:<h:form><h:pa...
asked by 04.05.2015 / 16:15
1
answer

Change Selectonemenu

I'm working with the Parents, Province, and City tables using JSF, Primefaces, and EJBs. But running the Project gives the following error:    javax.faces.FacesException: /location.xhtml @ 131.83   value="# {utilBean.aprovincia.fkPais.pkPais}...
asked by 25.12.2015 / 16:23
1
answer

Refresh the database correctly

Updated : Link with a video that best exemplifies the situation. I have a big problem, I'm having trouble updating the database and displaying the updated data by 2% with% different. I have two pages, one is visible to a position offic...
asked by 16.06.2015 / 14:52
3
answers

Button does not execute the ManagedBean method

When I click on the change or delete buttons, the ManagedBean methods are not executed. Does anyone have any ideas? Is there any configuration on the buttons? Project: link UsuarioListaAtivos.xhtml <ui:composition template...
asked by 03.09.2015 / 03:33
2
answers

How to download a .pdf file with JSF?

I'm using JSF and Primefaces, and I need to download a PDF that I generated with iReports and Jasper. I save the PDF this way, in this path: String caminhoReports = FacesContext.getCurrentInstance().getExternalContext().getRealPath("/WEB-IN...
asked by 02.02.2015 / 00:04
2
answers

Change the label color of a chart in PrimeFaces

I have a graph and the labels that are on the x axis are very dark color and I would like to change this color, I already tried to change the color property of the graph, but only the title changes. <p:chart type="bar" model="#{graf...
asked by 20.07.2015 / 18:46
2
answers

How to use the Primefaces p?

Set the nome field by using p:inputText to receive values, it is a field . How do I display a message showing that this field is required, using p:messages ? I'm also using JSF. Follow my HTML: <h:form> &l...
asked by 11.11.2015 / 20:16
1
answer

How to get the value bound to a selectOneRadio and assign it to an attribute in a Bean

I want to implement a method / way to get the value bound to a selectOneRadio (which is an Enum) and assign it to an attribute inside a Bean. After getting the value bound to selectOneRadio, I will pass it as a parameter to a method called ne...
asked by 13.09.2015 / 04:53