Questions tagged as 'cdi'

1
answer

Primefaces (TabView): Null properties when saving

I'm using a TabView with two tabs and each tab with an external file with fields. By clicking the "Save" button the attributes are coming as null. Here is the code: Registered Clients.xhtml: ... <h:form id="frm-cadastro-cliente-dialog"&g...
asked by 27.02.2017 / 20:13
2
answers

Gives success message that saved, not error message, but in bank is not saved - jsf

My code is giving success message in saving the record, but in reality it is not saving, I already checked the database, it is not generating error message, and it shows the code is all right, what will it be What happens if this happens? My...
asked by 05.10.2015 / 13:27
0
answers

@Stateless in CDI project

Person, I have the following structure in my project (CDI): BEAN: @Named @SessionScoped public class ClienteMB extends BaseAbstractMB<Cliente, ClienteDTO> implements Serializable { @Inject private ClienteService clienteServic...
asked by 06.11.2018 / 11:05
1
answer

Error: The constructor VelocityTemplate (InputStream) is undefined

import java.io.Serializable; import java.util.Locale; import javax.enterprise.context.RequestScoped; import javax.inject.Inject; import javax.inject.Named; import org.apache.velocity.tools.generic.NumberTool; import com.outjected.email.impl.te...
asked by 30.09.2018 / 17:59
0
answers

Error when implementing CDI in a JSF project using Tomcat

I'm developing a project that initially only had JSF and PrimeFaces as FrameWorks but I decided to implement CDI to be able to use @ConversationScoped and I implemented and without making any other modifications I tried and the project was worki...
asked by 19.08.2018 / 20:02
1
answer

Keep Bean alive even after a redirect - JSF

Does anyone know of any way to make a Bean live even after giving a redirect? The situation looks like this: I'm developing a project where, in theory, the user logs in and the user and password he typed are saved somewhere (probably together...
asked by 19.08.2018 / 23:11
0
answers

Doubts the transitions of an object between Beans JSF

I have a login class that instantiates a CLIENTID attribute in the session after the client logs in LoginBean.java public void efetuarLogin() throws IOException{ cliente = clientePU.clientePorEmail(email); System.out.println(email);...
asked by 16.08.2018 / 20:43
2
answers

I can not make the LIST page work in JSF

I have the following code that I'm developing with JAVA JSF, primefaces, postgre, cdi, tomcat: BUSCARBEAN package controller; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.annotation.PostCons...
asked by 10.07.2018 / 21:03
0
answers

CDI interceptor does not recognize Priority variable

So folks were following this tutorial: DataSource in Tomcat only when implementing the part of CDI of the project I ran with the following error: com/mycompany/soft/util/TransactionInterceptor.java:[13,22] cannot find symbol symbol: vari...
asked by 04.07.2018 / 04:40
0
answers

How to get server path without starting FacesContext - running JOB?

I have a JOB where I need to download files in order to use them. My project is Java + JSF + CDI. It happens that at the time of the execution of JOB I have no user logged in and the return of FacesContext is null because I am not logged i...
asked by 07.04.2018 / 21:44