Questions tagged as 'jsf-2.2'

1
answer

commandbutton executes method, but being null values. Why are not the inputstexts values assigned to the class attributes?

In all the examples I saw in the code below, the normal occurrence was when the xhtml page was started creating a new client-type object. Through the values entered in the inputs, set the attributes of this object and the commandbutton could use...
asked by 30.08.2015 / 15:27
1
answer

JSF slowness after implementing PhaseListener

I'm implementing the PhaseListener interface and now the system has been slow. I've been doing an analysis and seen that JSF is making repeated calls to a page that has only one dashboard with information coming from the database. Does anyone kn...
asked by 17.09.2015 / 22:23
1
answer

java.lang.ClassCastException: Error in JSF Converter

I'm implementing the Converter below: @FacesConverter(forClass = Cargo.class) public class CargoConverter implements Converter { @Inject private CargosRepository cargoRepository; public CargoConverter() { } @Override...
asked by 13.10.2015 / 02:47
2
answers

java.lang.String can not be cast to com.sisEnade.tcc.modelo.Questao

Good afternoon. I'm having the following error: java.lang.String can not be cast to com.sisEnade.tcc.modelo.Questao However, I could not resolve the error. The purpose of the implementation is to create a filter, to bring to the user que...
asked by 12.10.2015 / 19:08
1
answer

Because JSF is not respecting the inserted routes faces-config.xml

My application is no longer respecting the routes inserted in faces-config.xml, because? Here's the exception: Caused by: java.lang.NullPointerException at com.sun.faces.application.NavigationHandlerImpl.determineViewFromActionOutcome(Navig...
asked by 13.10.2015 / 15:52
1
answer

How to inform downloadable PDF file name using IText / Lowagie and Primefaces?

I am able to download the generated file, but I can not name it or .pdf, only download as index.xhtml . Does anyone know how to handle this? I call the method to generate the PDF like this: <h:body> <h:form>...
asked by 08.08.2015 / 22:12
1
answer

JSF calendar with datatable having data from different lists

I'm making software in JSF (2.2), primefaces and JPA with Postgres bank. I need to make a schedule of accounts payable with the following columns and their data: Column before yesterday with data: due date, vendor and value. Column yesterday wit...
asked by 26.06.2015 / 14:40
1
answer

Problem creating custom components in JSF

I'm having trouble creating custom components in JSF, it's actually the first time. I found some guides on the internet but it did not work. What I did was the following. I created custom.taglib.xml inside the folder WEB-INF...
asked by 26.11.2014 / 14:32
1
answer

Doubts in using the dataExporter

I am using the dataExporter from primeFaces to export the contents of a dataTable into pdf. The problem is that the pdf does not bring the name of the columns, just the content. In the examples I've seen in the showcase, it captures the column n...
asked by 10.11.2014 / 20:39
3
answers

How to load the list of items from p: selectOneMenu when clicking to open the dropdown?

I would like my p: selectOneMenu to reload the items and show the options every time I clicked to open the dropdown, has anyone tried to do this? If so, how do I do it?     
asked by 07.07.2014 / 20:43