Questions tagged as 'jsf'

1
answer

Problems with NullPointerException

I'm doing a Java application using 5.1 primefaces and it was working correctly to delete students in version 2.1 before upgrading to version 5.1. I'm trying to delete a student, but this error appears. But when you return to the page the stud...
asked by 29.06.2017 / 01:54
1
answer

Deploy serializable in JSF

Why implement the serializable in the JSF managed bean? When to use and not to use? What is the serializable interface for?     
asked by 12.12.2014 / 05:15
1
answer

JPA return from the Many side of an entity @OneToMany using @OrderBy

I have the following Cliente entity that has Pedidos . The relationship between clients and requests is mapped with Cliente @OneToMany and Pedidos @ManyToOne . What I need is for the Customer Requests list to be sorted by...
asked by 15.08.2018 / 15:30
1
answer

What is the relationship between the Primefaces ajax and the events

In the face of certain problems during my development the following doubts arose for example. When I use the ajax tag in Primefaces , it has the event property where we pass events, so I had some questioning. Once I had...
asked by 06.08.2014 / 12:15
1
answer

How to add data to a list whenever a p: hotkey is used?

I have <p:hotkey> which is the component of Primefaces to work with shortcuts. Every time I press ctrl + 1 two new fields appear on the page, however I would like every time I press this combination the data that is in imputT...
asked by 17.08.2015 / 16:22
1
answer

How to resolve the "No appenders could be found for logger" warning?

I'm trying to set up Log4j in my project with JSF. I followed all the steps in a tutorial I found on Youtube . However, the following message is being posted: log4j:WARN No appenders could be found for logger (br.com.hidros.control.beans.Cont...
asked by 11.11.2015 / 18:00
1
answer

How to execute a back bean method from a JavaScript function?

I'm developing a web page with canvas in HTML 5, it will be displayed in dashboards in real time, so I use ManagedBean to return their values, I have a component developed in JavaScript with its variable declared as global, and every 3 se...
asked by 20.10.2014 / 20:26
3
answers

How to do to eclipse auto-complete code without ctrl + space?

<ui:define name="menu"> <ui:include src="/includes/menuPrincipal.xhtml"></ui:include> </ui:define> <ui:define name="conteudo"> <h:form id="frmFabListagem"> <p:dataTable id="tblFabricante...
asked by 13.01.2015 / 22:21
3
answers

Problems implementing implement convert to selectOneMenu

Good afternoon. I am having trouble implementing a selectOneMenu of objects in my xhtml. It is giving "Conversion Error". Could someone tell me what the code problem is? Error code: Erro de conversão ao definir o valor 'br.com.somore.model....
asked by 19.05.2015 / 20:51
1
answer

How to send an object by parameter?

I have this following code snippet <p:selectOneMenu id="agencia" converter="agenciasConverter" value="#{agenciasMB.agencias.agencia}" style="width:150px"> <f:selectItem itemLabel="Selecione a Agência" itemValue="" noSelectionOpti...
asked by 30.11.2015 / 18:59