Questions tagged as 'jee'

2
answers

___ ___ erkimt With the departure of ViewScoped the new specification of the JSF, which scope to use now in my managed beans that used using JSF 2.2? ______ qstntxt ___

I have a big question now with the appearance of JSF 2.2: What do I do with my views and my old managed beans? How do I now (what scope to use) since I can not use more view scoped in a view that needs to keep some objects in memory between ajax requests?

    
______ azszpr95 ___

According to: link

La says that the @ViewScoped annotation in the javax.faces.bean.ViewScoped package should become deprecated, given the creation of the @ViewScoped annotation of the javax.faces.view.ViewScoped package.

This happens, considering the adoption of an extension of the CDI, using the second annotation. If you do not use the CDI, this annotation will not work.

    
______ azszpr96 ___

You can and should use the CDI ViewScoped: javax.faces.view.ViewScoped, however of course, you need to use CDI beans.

What happens is that JSF ViewScoped does not work with CDI beans, and JSF is taking the course where CDI beans will override JSF Managed Beans. So they are making arrangements for the entire javax.faces.bean package to become deprecated in the future.

More information here at this link: link

    
___

I have a big question now with the appearance of JSF 2.2: What do I do with my views and my old managed beans? How do I now (what scope to use) since I can not use more view scoped in a view that needs to keep some objects in memory between ajax...
asked by 11.12.2013 / 19:18
1
answer

How to restrict so that a larger date and then a shorter date are not used using Calendar Restrict?

Good evening! Here is my problem: I'm making a screen that has two calendars: Theprogramwillreturnmealistcomprisingtheintervalbetweentwodates.Onedateisfromthefirstcalendar,andtheotherfromthesecondcalendar.However,mycodebelowisnotworking.&...
asked by 28.05.2016 / 00:00
3
answers

Definition of EJB

Please forgive me for the generic subject, but I have been researching for a long time in a number of places and have not found anything that would satisfactorily explain what an EJB really is and what it does. I am adept at using real exampl...
asked by 09.06.2014 / 22:52
1
answer

What programming should be done to use Spring Security with Jboss with annotations?

As per requirements of a project that is in the research phase, I need a large distributed system to work properly with Spring, right now I'm having a hard time integrating Spring Security 3.2 with JBoss EAP 6.3. It's a bit difficult to defin...
asked by 08.06.2015 / 21:12
2
answers

Generation Strategy Id Hibernate in PostgreSQL

I have a system in JEE7 with Hibernate and PostgreSQL database, the tables are with auto Id generation by Hibernate: @GeneratedValue(strategy = GenerationType.AUTO) private Integer id; What happens is that Hibernate generates a unique index...
asked by 18.05.2016 / 06:00
1
answer

"Error" CRUD Hibernate JAVA

Folks, I'm starting to learn how to use hibernate, and a kind of "error" occurred while a registry persisted. When registering an object player I must also pass the team of that player, however, the team is already registered in the database, so...
asked by 09.09.2016 / 20:37
1
answer

Mapping classes HIBERNATE

Well, I have a question about an exercise that was passed in the facul recently. I have to map classes with JPA, Hibernate and I'm having a bit of trouble in mapping the relationships of those classes. The problem is this, the exercise is a...
asked by 06.09.2016 / 16:54
0
answers

javax.el.MethodNotFoundException [closed]

Good afternoon guys, I'd like your help for an error that I still do not understand why it happens. The situation is: I have a method in my managedBean listTurmas that loads a list so that later I can use, I already tested this method in a te...
asked by 16.09.2016 / 17:31
0
answers

How to Run the Pivotal TC Server with Eclipse Luna?

I'm studying the use of Spring Security, and according to the tutorial in this link, you need to use the STS - Spring Tool Suite , but as I already have my Eclipse installation for daily use, I installed the Spring plugins and also the Connecto...
asked by 07.07.2015 / 18:25
1
answer

Demoiselle update for JEE7

The Demoiselle framework has greatly increased productivity here in the enterprise. However, it is a limiting factor in the use of some new technologies, especially related to JEE7. My projects would benefit a lot from JEE7, but I have to cho...
asked by 24.04.2015 / 14:00