Questions tagged as 'jsf'

1
answer

How to call a JS function by Bean JSF passing parameter as soon as the page loads?

I have to call a function in my JS by passing a vector as a parameter when the page loads. I can do this using a p:commandButton , where here: actionListener="#{rotaEntregaBean.gerarMapa()}" I execute the function in the Bean (ge...
asked by 23.10.2017 / 21:10
1
answer

java.lang.IllegalArgumentException: attempt to create delete event with null entity

I have a simple Model class from Manufacturer with only the 'description' attribute. My database is populated and the save and edit method is working normally. But when I go away it generates the following error on the console: java.lang.Illeg...
asked by 24.10.2017 / 13:11
1
answer

field of type enum can be used for comparison?

I have a field of type Enum: public enum StatusImpressaoEnum { PREVISAO(0 ,"Previsão"), EMELABORACAO(1, "Em Elaboração"), AGUARDANDOREPASSE(2, "Aguardando Repasse"), REPASSERECEBIDO(3, "Repasse Recebido"), ATENDIDO(4 ,"Atendido"), SOLICITAC...
asked by 08.11.2017 / 13:08
0
answers

JSF - Interrupt method when closing browser

I have a report that depending on the filter applied may take a long time to finish. On some occasions the user gives up waiting and closing the browser, it happens that the query is still running on tomcat. Is there a way to invalidate the sess...
asked by 26.10.2017 / 13:02
1
answer

Angular 2 - Creation of Components (Tags)

How do I create components in Angular? I want my team to put a TAG Ex: <campoBusca></campoBusca> and on the screen a input is already printed, with the necessary divs , etc! could you understand? It's the same principle as th...
asked by 03.10.2017 / 15:19
1
answer

When returning validation error in the form, object gets the values entered

On the screen I have a datatable that I fill in with a list of objects. Using f: setPropertyActionListener I hedge a list object to an auxiliary object and show it in a dialog. In the save method I say some validations, when it returns an error,...
asked by 22.09.2017 / 18:35
0
answers

Infinite Loop Method

I have a method call that is made with <p:remoteCommand /> of Primefaces on the Home Page of my system. And it works perfectly with some users, but with others it goes through the method in the full Bean, but never ends. The loop ha...
asked by 25.09.2017 / 15:31
1
answer

Problems with p: ajax in primefaces

Good morning, friends! I am a beginner in Java and I am trying to develop a system for church management. After many attempts, I can make ajax work, however I am not able to retrieve the id of the state that was selected in selectOneMenu. The id...
asked by 08.10.2017 / 16:05
0
answers

Background does not continue in the area larger than the browser screen

I have a login screen: <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <c:set var="context" value="${pageContext.request.contextPath}"></c:set> &...
asked by 19.09.2017 / 19:08
2
answers

Target Error Unreachable, identifier 'ClienteBean' resolved to null

System error: Error message:    Caused by: javax.el.PropertyNotFoundException: /index.xhtml @ 22.72   value="# {ClientBean.client.name}": Target Unreachable, identifier   'ClienteBean' resolved to null at   com.sun.faces.facelets.el.TagV...
asked by 28.09.2017 / 18:06