Questions tagged as 'cdi'

0
answers

Spring Security + CDI + HibernateFilter

Good afternoon! I'm on a system with Primefaces, Hibernate, CDI and I'm implementing security with Spring-Security and controlling transactions with HibernateFilter, declared in web.xml. I did all the tests with authentication in memory and g...
asked by 19.01.2017 / 03:06
1
answer

how to create a bean that returns an entityManeger

I'm using springboot + ejb + cdi + wildfly10 I already created the datasource and I configured it, I was in the interface of the wildfly and the DS is connecting normal. Dao @Repository public interface PessoaDao extends JpaRepositor...
asked by 03.02.2017 / 20:31
1
answer

Horizontal Scroll Bar, selectOneMenu - PrimeFaces

Hello, I am developing an academic project using JAVA EE, JSF, PrimeFaces, CDI, Hibernete among other technologies ... The layout is responsive and I'm using PanelGrid to organize the form's comps The situation is .. selectOneMenu contains...
asked by 07.12.2016 / 12:03
1
answer

Object injected but is null [duplicate]

I have an object that is injected into my converter: package br.com.pokemax.modelo.converter; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.Converter; import javax.faces.conver...
asked by 24.11.2016 / 22:16
1
answer

cdi does not find daos (spring data + ejb + cdi)

The situation is as follows, I'm using the spring boot and the first thing I did was disable the cat tone and use wildfly (10) I used spring data to create Daos public interface AutoresDao extends JpaRepository<Autor, Long >{} Then...
asked by 27.01.2017 / 01:09
2
answers

null return when registering new product, but when I edit save I do not give any errors

Hello everyone, I'm having jsf application problems, cdi, when registering new product give null return, but when edite does edit normally. give error ago 28, 2016 12:52:37 AM com.sun.faces.lifecycle.ProcessValidationsPhase execute ADVERTÊNCIA...
asked by 28.08.2016 / 05:51
1
answer

facesProduces file error

is giving error    Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001409:   Ambiguous dependencies for type HttpServletRequest with qualifiers   @Default at injection point [BackedAnnotatedField] @Inject private   com.oliveira...
asked by 12.08.2016 / 04:19
0
answers

screen editing user does not load data, and delete method does not delete

Take a look at the codes: <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition template="/WEB-INF/t...
asked by 12.07.2016 / 21:03
1
answer

Show itemLabel instead of an ivemValue in DataTable - JSF, Primefaces

Well, I'm working on a project and when saving a record using the selectOneMenu of primefaces, an Id is displayed instead of the field name that was selected, I need to know how to display only the field name. Here's my xhtml: <p:outputL...
asked by 04.05.2016 / 16:27
0
answers

Software design with rich classes and CDI

Good evening. I've been reading a lot about software architecture using rich classes, dependency injection and such. According to what I have read the ideal is the class to receive in the constructor the information it needs and receive dependen...
asked by 30.03.2016 / 00:38