Posts by eugenioflima • 84 points
10 posts
-
0
votes2
answers862
viewsA: Reading PDF with Defaultstreamedcontent. How to close it?
StreamedContent.getStream is closed by the classes: FileDownloadActionListener PrimeResourceHandler Then at the end of the request the Primefaces itself is in charge of closing the InputStream.…
-
0
votes1
answer55
viewsA: Data does not persist when saving with dialog box
The problem is in process of the commandbutton. With @this the only data being submitted is the button itself. Replace with @form.
-
0
votes1
answer156
viewsA: XML parser error with JAXB
I believe the problem is that you’re using the method JAXBContext.newInstance(Class... classesToBeBound), but it’s only going through Parlamentares.class as a parameter. Pass the other generated…
-
0
votes1
answer45
viewsA: Jboss is not starting
Check that persistence.xml has been packaged in your War and that in the file there is a persistence-Unit with the name "denuncias-ds".
-
0
votes1
answer84
viewsQ: How to make Requestcontext thread-safe?
In one project I am using the component "Demoiselle-Scheduler-Quartz". In this project several threads are fired and executed concurrently. The "Demoiselle-Scheduler-Quartz" component injects the…
-
2
votes2
answers162
viewsA: Capture through the Exceptionhandler
The validation triggers a ConstraintViolationException which can be encapsulated in TransactionException. So I opted for the following solution: @ExceptionHandler public void…
-
1
votes4
answers957
viewsA: Intercept Exception
We face the same problem, the ConstraintViolationException is encapsulated in TransactionException. So I opted for the following solution: @ExceptionHandler public void…
-
0
votes2
answers1478
viewsA: Entitymanager with JTA multiple connections
You must configure your application to use Two-Phase Commit. Here are two interesting articles: http://java.dzone.com/articles/xa-transactions-2-phase-commit…
-
1
votes3
answers1368
viewsA: What better way to save a Group object that has Items lists?
Two good strategies would be to use (1) lightweight objects (Objects) and/or (2) caches. Lightweight objects are objects filled only with the identification and display fields for the user, for…
-
2
votes1
answer213
viewsA: Data modeling problems with Persistence.xml
The cause of the error in the "Catalogdao" and "Productdao" classes is the same: Unable to find com.accenture.extremeex.domain.Catalog with id 1. In the table "Catalog" there is no record with…