Questions tagged as 'java-ee'

1
answer

The find () method of my DAO Generic entityManager is giving NullPointer, how to fix it?

The change from my DAO looks like this: private EntityManager entityManager; public void alterar() throws Exception { System.out.println("T encontrada"); System.out.println("iniciando Alterar id: " + this.getId()); System.out.prin...
asked by 20.08.2015 / 22:20
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

How to link a Query to a Container?

TypedQuery<Empteste> minhaLista = em.createQuery("Select d from Empteste", Empteste.class); List<Empteste> results = minhaLista.getResultList(); I want this my list result to appear in my JPA CONTAINER I was trying this, but I...
asked by 03.12.2015 / 13:53
2
answers

confirmDialog does not work

I have an delete button inside my dataTable , but every time I click on it confirmDialog does not appear. I'm doing the following: <p:column style="width: 100px; text-align: center"> <p:button icon="ui-icon-pencil...
asked by 22.06.2015 / 14:38
1
answer

Format date in Angular for Java.util.Date

I have the following date generated in AngularJS: 2015-09-14T18:38:03.637Z when I try to give a POST the following error occurs in the backend:    Caused by: java.text.ParseException: Unparseable date:   "2015-09-14T18: 38: 03.637Z" at...
asked by 14.09.2015 / 20:50
1
answer

The p: dataTable is not paging

Te a page that receives a param. <f:metadata> <f:viewParam name="id" value="#{MyBean.MyObject.id}" /> <f:event type="preRenderView" listener="#{MyBean.exibir}" /> </f:metadata> <c:set var...
asked by 16.07.2015 / 06:30
1
answer

Event update in component "p: commandLink" does not render

I have datatable displayed within Dialog primefaces , when I click on commandLink of the line I want, I want to get this value and render it within inputText of my screen, but I'm getting the% following error in my...
asked by 21.04.2015 / 03:39
2
answers

Why can not I load static data in JSF dataTable?

This is my class: package com.algaworks.pedidovenda.controller; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; @ManagedBean @ViewScope...
asked by 11.05.2015 / 17:56
1
answer

Problem with currency mask in Primefaces

I'm using JSF, and my currency mask is not working, did I get into any of the code? here is the code below <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">...
asked by 17.03.2015 / 16:36