Questions tagged as 'jsf'

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

How to communicate JavaScript data in JSF? [closed]

I'm developing an application that performs digital signature. In it, I load a PDF file that has the address stored in a JavaScript variable. In the background, there is an application in JSF , which has the nature of signing...
asked by 03.06.2015 / 21:23
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

@Named does not work JSF

I'm doing a project with jsf 2 and glassfish server when I put @Named on my bean the attributes get null only works with @ManagedBean someone has already experienced this problem     
asked by 18.08.2014 / 16:20
2
answers

Customize error message

I forced an error on my system that contains the following message:    javax.persistence.PersistenceException:   org.hibernate.exception.ConstraintViolationException: could not   execute statement It is a constraint violation. How can I c...
asked by 09.06.2016 / 22:20
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
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
1
answer

JSF page displaying object reference value

Good evening. I have a page in JSF called simulate.xhtml where I implement a filter to generate the simulation and I'm also trying to display results of the database that have already been filtered on that same page , but as a result I get t...
asked by 14.10.2015 / 06:47
2
answers

Relationship between bean and view

I have three views that show the same table with a sequence of leds and information, I have a service class that does the business logic to know which led and which color to display, in my bean responsible for the view I get...
asked by 28.06.2017 / 15:09