Posts by Macario1983 • 1,335 points
76 posts
-
1
votes2
answers3143
viewsA: How to load a jQuery function when loading a page that uses JSF and Primefaces
I was able to do what I needed using the possibility that the system offers me. When I do that <f:selectItem itemLabel="Todos" itemValue=""/> I pass on the list one String empty when I select…
-
2
votes2
answers3143
viewsQ: How to load a jQuery function when loading a page that uses JSF and Primefaces
I am using a function to check if all checkbox are marked to load a registered already filled. So I wanted to know how to call the function. function selectAllCheckbox() { var booleanArray = new…
-
0
votes2
answers3052
viewsA: How to work with Postgresql array data types using Hibernate
First, I would like to thank the above user who posted me the answer, as I had a few days working on this solution for the company where I work. First I was using my database case postgres, and one…
-
4
votes3
answers1665
viewsQ: Test automation on web pages
I would like the indication of tools to record the data entry on the page. I have already used the Selenium IDE, Selenium Web Driver. I saw that there is the iMacros. I am programming in JSF, Java…
-
3
votes2
answers3052
viewsQ: How to work with Postgresql array data types using Hibernate
How to perform object recovery and saving using type columns array using the Hibernate? In my case I want to save String. How I define in model the object? I found it on the net some examples but…
-
3
votes2
answers3040
viewsQ: Select all checkboxes by clicking another Primefaces checkbox
I have a question, how to select all checkbox that is inside a panelgrid? I saw that it is possible to do this via Avascript. But I was in doubt about how to perform the method because to select…
-
0
votes2
answers1367
viewsQ: Locked socket when performing data exchange
I am trying to carry out server and client code in Java for the client to send a String, the server process and return it and the client receive. The customer is kept always listening. But after…
-
3
votes1
answer1549
viewsQ: How to write a file to ISO-8859-1 without losing accentuation
I would like to know please how to save a file to ISO-8859-1 and not to miss the graphic accent if possible, my doubt comes from the following. When defining in Eclipse that the file encoding…
-
2
votes1
answer2169
viewsQ: How to know the execution order of the JSF component methods
How do I find out which order to execute methods in jsf? My doubt is based on the following, once a button was firing late a method, as it had not chosen correctly the method of the button. In this…
-
1
votes1
answer664
viewsA: Problem disabling button on primefaces
Staff a fellow worker presented me with a workable solution to this problem. <p:commandButton id="bt_filtrar" value="#{lbl['BOTAO.FILTRAR']}" process="filtro"…
-
1
votes1
answer664
viewsQ: Problem disabling button on primefaces
I am trying to realize a logic of effecting the export button excel is disabled by clicking the search button if the number of records is equal to zero. The problem is that the first time it works…
-
2
votes1
answer429
viewsQ: Problem configuring spring data jpa project with Hsqldb
I am trying to set up a project example using Spring Data JPA with Hsqldb I made the class I would be model, to interface repository and a main class to run. I didn’t create the bank because I have…
-
4
votes3
answers370
viewsQ: How to perform TDD using Hibernate
I would like to know how to perform TDD using Hibernate. I have been informed that this ORM stores memory before recording into possible, so I wanted to know how to test a data that is in memory.…
-
1
votes1
answer785
viewsA: How to parallelize this code snippet using Openmp
The corrected code would be this, remembering that I took the initialization of the variables that are in the clauses. #include <stdio.h> #include <fstream> #include <sstream>…
-
0
votes1
answer785
viewsQ: How to parallelize this code snippet using Openmp
I’m trying to parallelize an activity using OpenMp. I having problems because after the first is the code below the result shows wrong. #include <stdio.h> #include <fstream> #include…
-
1
votes4
answers3813
viewsA: How to check if one string is contained in another?
I managed using regex. Pattern pattern = Pattern.compile("\\{(.+?)Bean"); Matcher matcher = pattern.matcher(text); while (matcher.find()){ beanName = matcher.group(1); beanName =…
-
1
votes4
answers3813
viewsQ: How to check if one string is contained in another?
I have several strings in one ArrayList. I would like to know how to return a string from that list that contains another one that was passed. For example, if I pass one String "Bean", want to…
-
3
votes1
answer490
viewsQ: Get components that are inside a xhtml file
In a source code facelets (xhtml) of the primefaces, I want to extract all tags <p:inputText>. After that, I want to take the attribute label. Could you do that? Remembering that the…
-
0
votes3
answers435
viewsQ: How to loop in openMp to count lines from a text file?
How to loop using the library OpenMP to count lines a file? #pragma omp parallel for for (string line; getline(file, line); ) { count++; } This way he doesn’t execute, it seems he only accepts for…
-
3
votes2
answers20308
viewsQ: How to read a text file and take the values as integers?
I want to know how to read a file in c++. The first line has the size of the matrix and the other one has the elements of the matrix. Each element is separated by a blank space, there may be…
c++asked Macario1983 1,335 -
1
votes4
answers775
viewsQ: Static service class in web application
I have a class to generate report and another to check e-mail in an application, should leave it as static? The email class is to check the email in a certain period or when the user requests.…
-
0
votes3
answers1447
viewsA: Fork in Join in Java
I am posting the code as an example for anyone who wants to see how it was done. This can be changed by anyone who wants, as long as it has improved. package service.forkinjoin; import…
-
2
votes3
answers1447
viewsQ: Fork in Join in Java
During a project I was suggested the use of Fork in Join of the Java API instead of threads, I found nothing easy to understand by the examples found on Google. I understood that it is possible to…
-
2
votes1
answer327
viewsQ: Move multiple messages to a folder using Javamail
I’m looking to refactor an email manipulation code, I know you can remove multiple messages in one operation, but and to move multiple messages to a certain folder, have as? I use the IMAP protocol.…
-
4
votes2
answers4977
viewsQ: Using the JPA repository
Last Saturday I presented my TCC in college and saw that I need to improve the presented project. The system receives tax notes in format XML and manipulates them. I based the system on the company…
-
3
votes2
answers1164
viewsA: How to identify if an XML is GOOD?
You can use the apache library Bominpuststream that she does this work for you, I’ve had this problem, and I can safely tell you that using this library makes it easier for you. A hint because I…