Posts by Jeremias Santos • 403 points
32 posts
-
1
votes1
answer1228
viewsQ: Nullpointerexception error when running java Maven project
I created a Maven Java Application project and only created a layout of a screen. When I try to run, it shows the error of NullPointer, I have not yet implemented any code other than the IDE’s own.…
-
1
votes0
answers278
viewsQ: Q:Legend Primefaces Date of Previous Day
Has anyone ever had a problem with p:Legend returning the date as the day before 11:00 ? You select the date and when to send it captures as of the Previous day at 23h. Any solution? Na View: <…
primefacesasked Jeremias Santos 403 -
1
votes0
answers146
viewsQ: View Image from Directory
I need to display an image in the application which is in the external directory of the application. I am using it as follows, however image is not displayed. It’s like the path is wrong. public…
primefacesasked Jeremias Santos 403 -
0
votes1
answer122
viewsA: String parameter in iReport
Solved Using: Example 6.3. Using built-in functions msg("Total cost is {0}", $F{TOTAL}) msg("Matched {0} products out of {1}", $F{MATCHED}, $P{TOTAL})
ireportanswered Jeremias Santos 403 -
0
votes1
answer122
viewsQ: String parameter in iReport
I have a Contract registration where has a text editor and the user can edit the text of the contract, but in this text will have information as Company and Plan Holder that are dynamic and as the…
ireportasked Jeremias Santos 403 -
0
votes1
answer174
viewsQ: P:messages duplicating messages Primefaces JSF
Message duplication problems in Primefaces p:messages. In the application I call this method just to insert the message. Follow the code: public class FacesUtil { public static boolean isPostback()…
-
0
votes1
answer549
viewsA: iReport does not render bold in PDF
Solved problem: ADD: <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports-fonts</artifactId> <version>6.0.0</version>…
ireportanswered Jeremias Santos 403 -
0
votes1
answer549
viewsQ: iReport does not render bold in PDF
iReport does not render Bold in PDF. Has anyone had a problem with this? Bold marked. Embedded PDF marked. Markup: Tested with HTML and Styled. I’m using font Arial. I have tried setting HTML and…
ireportasked Jeremias Santos 403 -
0
votes0
answers94
viewsQ: Primefaces Tabview Dynamic
I’m having trouble using Dynamic="false" in p:tabview of Primefaces. If I inform as Dynamic="true" everything works normal, however if I inform false that is my need, when clicking the button it…
primefacesasked Jeremias Santos 403 -
1
votes0
answers24
viewsQ: JsfExceptionHandler ConstraintViolationImp messageTemplate
I have the mapping in the user class: @NotNull(message = "Contato não pode ser vázio.") @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinColumn(name = "contact_id") @Getter…
-
1
votes2
answers260
viewsA: Primefaces Dialog Tabview
I was able to solve with more this method: public UIComponent findComponent(final String id) { FacesContext context = FacesContext.getCurrentInstance(); UIViewRoot root = context.getViewRoot();…
primefacesanswered Jeremias Santos 403 -
0
votes0
answers23
viewsQ: p:Dialog p:tabview Reset
I have a p:dialog where inside it there is a p:tabview, the button that triggers the Dialog has an Action which calls a method to initialize the screen data, but when opening the Dialog, go through…
primefacesasked Jeremias Santos 403 -
1
votes0
answers90
viewsQ: Persist @Manytoone NULL
I have a User class and another Contact class which have a relationship between them. It’s all working correctly the question I need to only be recorded a contact if there is any contact attribute…
jpaasked Jeremias Santos 403 -
1
votes2
answers260
viewsQ: Primefaces Dialog Tabview
I have a dialog where there are 2 tabviews, I click to display the dialog and switch between tabs, after closing if return to Tabview it returns with the last tab visited and I need it to return to…
primefacesasked Jeremias Santos 403 -
0
votes2
answers551
viewsA: Display External Image to Server p:graphicImage
It was only solved by mapping through Eclipse directly on Tomcat. My doubt came as I take it to the production since I Mapeed the directory inside the eclipse. In addition to the file generated…
-
0
votes2
answers551
viewsA: Display External Image to Server p:graphicImage
File on the Tomcat: openfiscal#uploadsopenfiscal.xml Conteudo Aquivo Tomcat: <?xml version="1.0" encoding="UTF-8"?> <Context antiJARLocking="true"…
-
1
votes2
answers551
viewsQ: Display External Image to Server p:graphicImage
I’m using it this way: XHTML: <p:graphicImage value="#{emitenteBean.myImage}" Bean: private StreamedContent myImage; try { FileInputStream fileInputStream = new…
-
0
votes2
answers313
viewsA: Upload Primefaces Directory
I’m using it this way: XHTML: <p:graphicImage value="#{emitenteBean.myImage}" BEAN: private StreamedContent myImage; try { FileInputStream fileInputStream = new…
-
2
votes2
answers313
viewsQ: Upload Primefaces Directory
I am uploading with Primefaces where the upload is in the Project Resources folder, but I want to use another directory for file storage, preferably in the root directory where Tomcat is. Any…
-
1
votes1
answer1915
viewsA: Tomcat 8 + Project Maven error
I managed to solve the problem. I deleted the Maven repository and downloaded it again and it worked properly. I believe there was some corrupted lib that error is not being displayed by Tomcat.…
-
0
votes1
answer1915
viewsQ: Tomcat 8 + Project Maven error
I am with the following error when starting the project, someone already had this problem? SEVERE: A child container failed during start java.util.concurrent.ExecutionException:…
-
0
votes0
answers66
viewsQ: p:fileUpload component is not limiting the files contained in allowTypes
Component p:fileUpload is not limiting the files contained in allowTypes. Has anyone ever had this kind of problem? <p:fileUpload id="certificado" mode="simple" dragDropSupport="false"…
primefacesasked Jeremias Santos 403 -
0
votes1
answer59
viewsQ: Problem with JSF Redirect 2
I have a CDI Session Bean which I store some information for use in the application while the user is logged in, however I need a control that when the other Beans try to use some attribute of this…
jsf-2.2asked Jeremias Santos 403 -
2
votes1
answer339
viewsQ: Get the current page name with JSF 2
I am using JSF 2 and need to get the name of the current page, how can I do?
javaasked Jeremias Santos 403 -
0
votes1
answer68
viewsQ: Tree Selection Primefaces
I want to make a resource in the application that lists the folders and files of a directory, so I thought about Tree Selection of Primefaces, but I want to expand Tree Selection at the level of the…
-
1
votes1
answer335
viewsQ: Postgresql many processes
I have Postgresql installed in a machine where runs a system, and throughout the day there are several processes with postgres.exe and consumes machine resources. At times it has more than 100…
-
2
votes1
answer206
viewsQ: Make Java Application Run as a Service
I have a Java application and would like it to run as a service on Windows. I researched the net and saw some ways to do it being some more practical and some confusing. Anyone who’s ever done…
-
5
votes3
answers534
viewsQ: Reduce jar size in Maven Design
I’m generating a jar from a Maven project and the size is absurdly high. What measures can I take to reduce the size of this jar?
-
1
votes2
answers1151
viewsA: Java Desktop Application Root Directory
Solution to what I need: The only Solution that Works for me on Linux, Mac and Windows: public static String getJarContainingFolder(Class aclass) throws Exception { CodeSource codeSource =…
javaanswered Jeremias Santos 403 -
1
votes2
answers1151
viewsQ: Java Desktop Application Root Directory
I have a java desktop application, being an executable jar and need to know the root directory where the jar is running. I’ve searched several ways and I haven’t found what I need, I’m always seeing…
javaasked Jeremias Santos 403 -
0
votes1
answer137
viewsQ: Problem with Viewscoped Requestscoped and Session
I have the following scenario: A Datatable with a button that executes a Bean method, but this Datatable is using a Lazy Loading Pagination, but according to the session annotation that I use the…
-
5
votes2
answers572
viewsQ: Primarykey, Foreignkey and Unique With JPA
I have the following situation: Student Entity (id and other) Entity Evaluation (id and others) Entity Notaavaliacaoaluno (avaliacaoId, alunoId) I want to transform the attributes valuedId, alunoId…