Posts by Frederico Queiroz • 188 points
28 posts
-
0
votes1
answer30
viewsA: Fire loading when Calendar is filled
I was able to solve it this way: <ui:param name="metodoOnDateSeleted " value="dummyMethod" /> <ui:param name="reRenderOnDateSelected" value="panelSituacao" /> <ui:param name="action"…
-
0
votes1
answer30
viewsQ: Fire loading when Calendar is filled
I have a calendar that when I have both dates filled in, I need to trigger the loading/loading and also update the status field with (*). The problem that I can’t load in Calendar follows code…
-
-3
votes1
answer100
viewsQ: Load modal only once
I have a modal that is loaded after login (automatic), but at each refresh the modal opens, I need it to open only once after logging in. <rich:modalPanel id="modal" autosized="true" width="500"…
-
-1
votes2
answers250
viewsQ: "algaworks" - Bigdecimal - Sum of values
I am trying to add the values added in the column "Value", IE, to each entry of a recipe the total field below needs to update doing the sum of the values in the column value, however I am with the…
-
0
votes1
answer118
viewsA: Error: The constructor Velocitytemplate(Inputstream) is Undefined
Actually I replaced the line: .bodyHtml(new VelocityTemplate(getClass().getResourceAsStream("/emails/apontamento.template"))) For: .bodyHtml(new VelocityTemplate(new…
-
-1
votes1
answer118
viewsQ: Error: The constructor Velocitytemplate(Inputstream) is Undefined
import java.io.Serializable; import java.util.Locale; import javax.enterprise.context.RequestScoped; import javax.inject.Inject; import javax.inject.Named; import…
-
0
votes0
answers80
viewsQ: Main way and Junit does not run on the console
I’m using version 2.1 JPA, from Hibernate version 5, and when I run both main and Junit methods, nothing appears in the console not even any error. The client class and address contain your ids.…
-
0
votes3
answers500
viewsA: Foreign key exclusion
I was able to solve it this way: In the Repository class, includes the flush, as below: public void remover(Pessoa pessoa) { this.manager.remove(pessoa); this.manager.flush(); }…
-
0
votes3
answers500
viewsQ: Foreign key exclusion
It helps the logic. My question is this:: I have a simple relationship between Lancamento and Pessoa, where people is the foreign key in Lancamento Model Class @NotNull @ManyToOne(optional = false)…
-
0
votes1
answer237
viewsA: java.lang.Illegalargumentexception: Attempt to create delete Event with null Entity
In fact the classes are correct, checking later calmly I realized that the error was in the xhtml in the confirmDialog, I put f:attribute inside the p:confirm, wrong: And the correct is as below.…
-
0
votes1
answer237
viewsQ: java.lang.Illegalargumentexception: Attempt to create delete Event with null Entity
I have a simple Manufacturer model class only with the attribute 'Description'. My database is populated and the save and edit method is working normally. However when I delete generates in the…
-
0
votes1
answer1707
viewsA: method save: org.hibernate.Exception.Constraintviolationexception: could not execute statement
I discovered my primary error, the problem is that in the database the field data_birth and activity were with not null and in my implementation was using the Restrictions eq. Solution: In the…
-
1
votes1
answer1707
viewsQ: method save: org.hibernate.Exception.Constraintviolationexception: could not execute statement
Guys, I have a little screen that registers name and type. When I click type Physics is rendered the date of birth and I need to save it and when I click Legal I have to save a branch of activity…
-
0
votes2
answers2968
viewsA: Error org.hibernate.Lazyinitializationexception
Well I managed to resolve by changing my dao query, where JPQL offers an explicit way to load the relationships through Join along with the fetch clause. public List<Movimentacao>…
-
0
votes2
answers2968
viewsQ: Error org.hibernate.Lazyinitializationexception
Error when the drive class is filled with data in the database, if there is no record, I can access my xhtml normally. In the class I count with fetch = Fetchtype.EAGER, but in the class drive this…
-
2
votes0
answers73
viewsQ: Project error downloaded from github with Jboss 7.1.1
I downloaded a project from github (fj25-financas-web project - Caelum) and added this project to Jboss 7.1.1. When running, these errors occur: 16:07:15,515 ERROR [org.jboss.msc.service.fail] (MSC…
-
1
votes1
answer155
viewsQ: Hide column at editing time
I have a registration screen with some attributes, in which at the time of editing I do not want to load the password, because I just want to change the name and email, I mean, I want to hide the…
-
1
votes2
answers915
viewsA: datatable primeFaces shows the number of correct records but does not show the fields
Friend is because you are making the wrong call, the correct one would be by the variable var="tableItens". var="tabelaItens", ficando assim: <p:column headerText="Ordem"> <h:outputText…
-
0
votes0
answers590
viewsQ: Authentication and authorization of the email and password on the login screen
I have a login screen in which the email and password are already registered in the bank, however I am not able to login with this data that are already recorded in the bank. In the loginBean class…
-
1
votes2
answers79
viewsA: Repeating code at listing time
I managed to solve this way, see an example here too: https://ideone.com/1ucEGY numItem +=1; String strNumItem = numItem.toString(); strNumItem = strNumItem.format(strNumItem, numItem) != null ?…
javaanswered Frederico Queiroz 188 -
3
votes2
answers79
viewsQ: Repeating code at listing time
I’m having a repeat problem at listing time, in my view it repeats R01 and R01, twice the same code and only then it correctly follows R02, RO3 and so on. The correct would be R01, R02, R03 and so…
javaasked Frederico Queiroz 188 -
1
votes2
answers303
viewsA: Cache Problem - Writing database data to Java system
After thinking that I would need to make notes in the model classes, I saw that the solution to my case was quite simple, see: In my persistence.xml was just add: <property…
-
3
votes2
answers728
viewsQ: Error in converting JSF
Error or Bug? Well I have an error appearing in the eclipse console, on the registration screen the form records perfectly, everything ok, but the console points: java.lang.NumberFormatException:…
-
2
votes2
answers303
viewsQ: Cache Problem - Writing database data to Java system
I have a system developed in Java using JPA, Hibernate, Primefaces. When I write system registration reflects in the Mysql database normally, until here OK, but when I do unlike the database…
-
0
votes1
answer796
viewsA: Plug-in org.eclipse.jpt.jpa.ui was unable to load class org.eclipse.jpt.jpa.ui.internal.editors.JpaXmlEditor
Personal I managed to solve, thanks for the attention Bruno, I had to update a plugin, and put some versions not so new, probably happened some conflict, the steps were: Help - Install New Software…
-
0
votes1
answer796
viewsQ: Plug-in org.eclipse.jpt.jpa.ui was unable to load class org.eclipse.jpt.jpa.ui.internal.editors.JpaXmlEditor
Everybody, I have an error that just appeared in the eclipse Hello, does anyone know what it might be, some plugin to update? The persistence.xml file does not open and an error appears in the title…
-
1
votes1
answer330
viewsA: Do not write to the database and the console appears as recorded
People I managed to solve, it was configuration error of messages.properties that was in the wrong folder, also lacked persistence.xml inside the META-INF folder although I had already created…
-
0
votes1
answer330
viewsQ: Do not write to the database and the console appears as recorded
I have a form inside the modal to record registration, when I insert the data it is as if it were recorded in the Eclipse console, but the same does not happen in the database Message on console as…