Most voted "java-ee-7" questions
16 questions
Sort by count of
-
8
votes2
answers701
viewsjava email sending does not show error when unable to send the same
I created a system where the user registers and the password is sent by email. If you cannot send the email, it generates an error and does not create the user, notifying the same. It was working…
-
4
votes2
answers851
viewsIs it possible to limit the number of lines in a class attribute that is a list via JPQL?
I have the query below in JPQL FROM User u INNER JOIN FETCH u.enderecos e WHERE u.id =:id ORDER BY e.id DESC A user can have more than ten addresses, so we want to bring only ten addresses and if…
-
3
votes1
answer1128
viewsHow to automatically create specific files via Maven to deploy from each container?
I am working on a rather complex JEE project, which involves the possibility of deploying the application to each client in a different container. In my development environment I use Jboss, but the…
-
2
votes1
answer174
viewsProblem in initial project configuration of 2nd edition Javaee book with JSF Prime Faces and CDI
Galley, I started reading today the book I mention in the title of this question. Following step by step I created the server in the eclipse, the project and the initial Servlet following the…
-
2
votes2
answers1186
viewsExtract JDBC Connection from Entitymanager using JTA
In an environment Javaee, there is the possibility to extract the JDBC connection(java.sql.Connection) using JTA? I have a datasource in Wildfly, where I inject in the following way:…
-
2
votes1
answer204
viewsLoading Lazy in Datatable of Primefaces does not bring the record data
I got a shipment lazy in DataTable of Primefaces, and in this table I upload I want to edit a record. Clicking on the line will open a dialog with a form for editing that record. But clicking on the…
java hibernate jsf-2.2 primefaces-5.2 java-ee-7asked 6 years, 3 months ago Raimundo Almeida Matos 35 -
1
votes0
answers84
viewsException interception for logging, using AOP with CDI in Java EE 7
Below I have part of a class, of which I want to eliminate repetitive logging code through AOP. /** * Javadoc omitido */ public abstract class JpaDao<T extends LongIdentifiable> implements…
-
1
votes1
answer1120
viewsHow to inject dependencies with Weblogic 12.x. x?
What is the procedure to be able to inject dependencies using @Inject of javax.inject on the Weblogic 12.x. x server? I need to download Weld and place it on project dependencies? I noticed that…
-
1
votes1
answer412
viewsSpring and Jasper - Browser does not understand streaming for download
I have an app that uses Jasper-Reports version 6.2.0 with spring-mvc version 3.2.14, java-ee-7, Tomcat 8 and at front-end we use Angularjs. The requisitions Rest are made via ajax. Spring…
-
1
votes1
answer734
viewsSpring, Angular JS and Exception Handling in Service Layer
I have an app that uses Jasper-Reports version 6.2.0 with spring-mvc version 3.2.14, java-ee-7, Tomcat 8 and at front-end we use Angularjs. The requisitions Rest are made via ajax. The application…
-
1
votes1
answer746
viewsomnifaces does not recognize CDI configured in Tomcat
Good morning everyone. I’m doing the book project "algaworks-ebook-java-ee-7-com-jsf-primefaces-e-cdi-2a-edition-20150228" and I’m having trouble adding the omnifaces. When I go up the Tomcat, I get…
-
0
votes1
answer19
viewsIs it possible to have a constant populated through a Spring @Service?
We have a web service that one of its parameters is called source and this source is always validated against a code in the database. For each of our services, I have to validate this code. This…
-
0
votes1
answer550
viewsIs it possible to inject a bean into a Singleton with Enum?
We have a system that uses Struts 1 and enum-based singletons. Now we have a dependency that was written using Spring 4.3.6.RELEASE that should only be used with other systems that also use Spring,…
-
0
votes1
answer153
viewsIf the user accesses the home before logging in he must be redirected to the index using jsp
What verification should I do if the user directly accesses the home.jsp page without logging in? Noting that I am not using Servlet for this situation, only jsp pages. Code from home.jsp page:…
-
0
votes0
answers10
viewsError in passing parameter Confirm Dialog Primefaces
I am using version 7 of the first faces with JSF 2.2 By clicking the delete button the parameter is not passed correctly. <p:column headerText="Ação"> <p:commandButton icon="fa fa-fw…
-
-1
votes1
answer33
viewsError setting up profile in Websphere via Eclipse
When trying to configure Websphere in Eclipse does not appear the folder where the created profiles are located (img screen-1) to select the profiles, when trying to configure via "Run Profile…