Posts by Marcelo • 901 points
72 posts
-
0
votes3
answers3113
viewsQ: Consuming HTTPS web service
I’m trying to consume the zip code webservice https://viacep.com.br/ws/88701001/json/ I’m using Java Web - JSF with Wildffly10 For this I am using the following code. String URL_WEBSERVICECEP =…
-
1
votes1
answer823
viewsQ: Wildfly 10 + Spring Security + JSF + CDI Does Not Inject Dependency
I’m trying to implement CDI in a WEB project I have where I use Wildfly10 with Spring Security (custom login) and JSF and I’m not being able to inject dependencies. In the Example below the User…
-
1
votes1
answer429
viewsQ: Inject CDI is not working with producer on a project . jar
I created an Entitymanager producer in a project .jar but the same does not work. I configured POM.XML with the dependency below <!-- CDI --> <dependency>…
-
0
votes1
answer43
viewsQ: How to make the mavem always get the jar from the master branch
I have two projects managed by Maven. The first is Model. The Second Front End and Controll The model is a dependency of Frontend. I do this with the following dependency on the pom.xml of the…
-
0
votes4
answers739
viewsA: Is it possible to put an "IF" condition on media to Internet joins and other Where conditions in SQL Server?
Take a look at the Transact-SQL IF command. Example: IF LEN(LTRIM(RTRIM(@REV)))=0 BEGIN <Seu codigo SQL> END
-
0
votes1
answer52
viewsA: Doubt (hibernate) - JSF
This is hard to understand. I suggest separating into two posts, one for each problem. And post all related entities. Anyway let me try the staff. It seems to me a @Onetoone relationship of Employee…
-
2
votes2
answers216
viewsA: Return information from a String
A very simple way to do this is with replace. String troca[][] = {{"<R1>","João Pedro"},{"<R2>", "Maria"}, {"<R3>", "Joaquina Fofa"}}; String FraseParametro = "<R1> casou com…
-
0
votes2
answers4580
viewsA: Primefaces JSF - <p:commandButton that serves the update and oncomplete
The update updates the part of the screen in question. The id of the component can be informed, if the same by a container (as a panelGroup) updates all components within the tag in question. Ex…
-
1
votes3
answers303
viewsA: JSF - Selecting Item from a Set
Try <p:panelGrid columns="3"> .... </p:panelGrid> p: is from the first faces but also works with pure JFS.
-
1
votes2
answers105
viewsA: Problem entering data into database
18:15:30,221 ERROR [org.hibernate.tool.hbm2ddl.Schemaexport] (Serverservice Thread Pool -- 59) Data truncation: Data Too long for column 'Cpf' at Row 1 I noticed that the row above is giving problem…
-
1
votes1
answer1376
viewsA: java.lang.Classcastexception: org.dom4j. com wildFly10 and Hibernate 5
The problem was library conflict. I cleaned all Pom.xml and was solving the dependencies one by one. Another detail was to replace the dom4j-1.6.1.jar wildfly-10.0.0.Final modules system layers base…
-
1
votes1
answer1376
viewsQ: java.lang.Classcastexception: org.dom4j. com wildFly10 and Hibernate 5
I’m trying to use wilddly10 but every time I put the dependency on Hibernate 5 in Maven runs the error. java.lang.Classcastexception: org.dom4j Dependency on pom.xml <dependency>…
-
0
votes1
answer899
viewsQ: Filter using stream with Class Lists that contain lists of other classes
I have the following class structure public class Linha implements Serializable { private static final long serialVersionUID = 1L; private Long id; private String prefixo; private String nome;…
-
1
votes0
answers119
viewsQ: Bean Validation of dependent fields
I’m starting with bean validation and I need to validate dependent fields. Example : I have the fields dataInicio and dataFim The field dataFim cannot be smaller than the starting date. I know I can…
-
1
votes1
answer398
viewsQ: Injection error of a JPA object in the Managerbean web project
I am having an injection error of a JPA object in Managerbean in the web project. I have divided into two projects controlled by the Maven. In the first project called Perolamodel contain the…
-
3
votes1
answer278
viewsQ: Download with 5.3 primefaces after 5.1 migration does not work
I am migrating from primeface 5.1 to 5.3 . It was to be simple, just change the version in Maven. But it’s not like that The p:fileDownload command no longer works <p:commandButton…
primefacesasked Marcelo 901 -
1
votes1
answer103
viewsA: How to pass to column of a Dynamicreports the contents of a compound object. Datasource is a list of this object
To whom it may interest, after a lot of testing and analyzing the source, I did as the JSF EL, I removed the get when mounting the object column. Where in java I do so:…
-
2
votes1
answer103
viewsQ: How to pass to column of a Dynamicreports the contents of a compound object. Datasource is a list of this object
I’m making a report using Dynamicreports For this I am passing a list to be used as Datasource List<VisaoViagemQuadroMensal> linhas = new ArrayList<VisaoViagemQuadroMensal>(); where :…
-
5
votes1
answer3313
viewsQ: How to pass parameter for a dialogue with Primefaces?
I’m calling a Dialog via a JSF button with Primefaces 5.1 enabling the Dialog through the onstart="PF('iconeDeProcessamento').show()" button. Can anyone tell if it is possible to pass a parameter to…
-
2
votes1
answer2881
viewsA: datatable calls a dialog for editing, but editing is not effective. (prime faces 5.1)
After much research, I discovered the problem. The appendTo property of the dialog was appendTo="@(body)", this was throwing the dice to xhtml h:Body and out of h:form which was not submitting the…
-
1
votes1
answer203
viewsA: Null pointer exception on a radio button
Normally I use the Radiobutton variable as String, you are using int. Another thing, boot to @Postconstruct String fis_jur; @PostConstruct public void init() { fis_jur = "teste"; } See also examples…
-
3
votes1
answer2881
viewsQ: datatable calls a dialog for editing, but editing is not effective. (prime faces 5.1)
I have a WEB application with 5.1 primefaces of a datatable I call a dialog for editing, but editing is not effective. I will describe with images and at the end put the full xhtml. I have a…