Questions tagged as 'cdi'

0
answers

problems with @Injection

Hello everyone. I'm creating a program that handles people and livestock records. In this program, on the cattle cadastre screen, I am creating two SelectOneMenu of primefaces. One is of cattle type and the other of cattle breed. These two Selec...
asked by 28.08.2016 / 18:19
0
answers

CDI Bean with @SessionScoped initializes more than once

I created a bean CDI with session scope (% with%). The problem is that you are going through the constructor several times, and it should be only one time while the user is logged in, correct? I've already changed the constructor to a metho...
asked by 13.09.2016 / 14:19
0
answers

CDI beans within .jar file are not found by the container (Unsatisfied dependencies)

I created a Java project to serve as lib to other projects, reducing duplication of code between projects. This lib project is exported to jar to be included in Web projects. In Web projects (where these classes are being removed) everythin...
asked by 24.08.2016 / 00:35
1
answer

EJBS overflow on ManagedBean

Good morning, I have a question as to how Container works in EJBS injection will the amount of EJBS injected into the ManagedBean interfere significantly with application performance?     
asked by 04.05.2016 / 15:10
1
answer

Persist object in CRUD JSF + CDI + JPA

I'm doing a simple CRUD using JSF, JPA and CDI. I have two screens: A screen with a datatable listing the data, on each line has the edit and delete button, at the beginning of the screen has an insert button, the edit and insert buttons...
asked by 19.01.2016 / 21:54
0
answers

REST + CDI (dependency error)

Hello, people, I've come to get some help because it's my first contact with CDI and he can not find my resources. I will post classes that involve annotations, injects and bugs from the console. I hope you will guide me! These are the error...
asked by 07.12.2015 / 15:46
1
answer

Does not recognize my createQuery method

I have a JSF2.2 project with CDI, and I configured my project correctly for CDI, which is very strange is that the createQuery method is not being recognized, other times it did the same way of programming and I never had a problem , but now I'm...
asked by 28.05.2015 / 00:13
0
answers

Exception trapping for logging, using AOP with CDI in Java EE 7

Below I have part of a class, of which I want to eliminate the repetitive logging code through AOP. /** * Javadoc omitido */ public abstract class JpaDao<T extends LongIdentifiable> implements GenericDao<T> { @Overr...
asked by 14.05.2015 / 21:38
1
answer

omnifaces does not recognize CDI configured in tomcat

Good morning, everyone. I'm doing the book project "algaworks-ebook-java-ee-7-with-jsf-primefaces-and-cdi-2a-edicao-20150228" and I'm having trouble adding omnifaces . When I go up tomcat, I get the following error: ... INFO: WELD-ENV-001...
asked by 26.05.2016 / 15:49
1
answer

Problem with CSS in JSF & Primefaces

Project - JSF CDI Mysql // I'm not using Maven Good afternoon guys, my question is this: I would rather than use style="....."; in xhtml code, to make code more elegant, make use of css. For example, I want instead of: <p:fieldset sty...
asked by 31.08.2017 / 23:37