Questions tagged as 'jsf'

1
answer

Session Difference in Java

What is the difference of javax.enterprise.context.SessionScoped and javax.faces.bean.SessionScoped ? Does anyone know how to explain?     
asked by 02.02.2017 / 19:12
0
answers

@ManagedProperty on a Managed Bean class returning null

I'm trying to inject a Managed Property into my class, but every time I try to access it in a method annotated with @PostConstruct it returns null, thus generating an Exception. Below is my class: package br.com.pathfind.importacao.m...
asked by 03.02.2017 / 14:24
0
answers

Show resultset results in same tab (JSF)

Hello, I have the following situation: I have a button (search) that executes a search method and returns the data in the same already open tab in a <p:dataTable . After generating a report in JasperReports (pdf button), which...
asked by 07.10.2016 / 06:14
1
answer

How do I make my image appear inside the ui: repeat tag?

I have a question. I'm using JSF and PrimeFaces to make a website for ebooks and I need to display the ebooks that are stored in the database. I can register the ebook normally, but at the time of displaying, the cover image of the ebook does no...
asked by 19.08.2016 / 02:23
1
answer

Criteria bringing duplicate data from hibernate to JSF

I'm getting duplicate data or sometimes missing data until, how can I fix it? This is my DAO: public List<Produto> filtrados(Filtro filtro) { try { Criteria criteria = criarCriteriaParaFiltro(filtro); criteria.se...
asked by 25.06.2016 / 03:34
0
answers

How to handle exceptions with JTA?

I have a project where I'm using JPA with JTA. In the gravar method, I put the @Transactional(Transactional.TxType.REQUIRED) annotation and there is a call to a validation method that can throw an exception called ValidacaoException...
asked by 18.06.2016 / 18:49
1
answer

Inject the Dao into the Converter

I'm having a java.lang.NullPointerException error in a converter at the moment it will access the bank, since the dependency is not being injected by the CDI, there are arguments that the Converter should not access the Bank any more my case I a...
asked by 08.07.2016 / 01:49
1
answer

JSF - java.lang.IllegalStateException: This web container has not yet started

I'm developing a site in JSF but I'm new to Web and I do not understand very well how things work. The site is a crud of simple music and I make calls to other applications in jar that are in the library to sort the s...
asked by 27.04.2016 / 19:58
0
answers

Convert docx file to pdf without losing formatting?

I'm doing the conversion from a docx file to pdf using the Docx4J API, however I'm finding it difficult to keep the original text formatting after conversion. Dependencies: <!-- docx4j --> <dependency> <groupId>...
asked by 12.05.2016 / 20:35
1
answer

Jsf 2 - DataTable does not select the row in the click and does not recognize pagination

I am using Jsf 2 without Primefaces and would like to know how I can solve the following problem: My DataTable is loading the data correctly, but it does not allow me to select the line that was loaded into it at all, it...
asked by 23.09.2016 / 14:35