Posts by João Neto • 2,676 points
92 posts
-
3
votes2
answers2124
viewsQ: Take values from an excel spreadsheet and display in a pop-up
I’m developing a spreadsheet and I’m having a hard time starting to work with the macros/vba. However I could not find a tutorial that showed me how to do what I need. I have a table that says: nome…
-
0
votes0
answers59
viewsQ: How to Get a Non-expert PDF on the Web using PHP
Well, I’m trying to make use of a PDF through your link. I’m using a library called PDF Parser. The problem is that the PDF does not have a direct link. When accessing the link, a key is passed as…
-
2
votes1
answer108
viewsQ: Convert tuples from different databases into a particular Java object
Well folks, I don’t know if the title of my question is quite correct, if not, someone please edit. I’ll explain my problem. I developed a tool that checks conflicts between access control policies…
-
2
votes1
answer1068
viewsQ: Open Jframe in maximized Java
I’m having a problem, I’m creating a Jframe and I want it to open maximized. I’m using the following code: frame.setExtendedState(Frame.MAXIMIZED_BOTH); frame.setLocationRelativeTo(null); The size…
-
5
votes1
answer1084
viewsQ: Redirect System.out.println output to Jtextarea
I’m having trouble making this redirect, let’s explain. I own a class called Engine.java, this class is responsible for doing my processing and in it has all the System.out.prints process, the…
-
0
votes0
answers121
viewsQ: Copy a record from a database with several related tables
I’m trying to copy a record from a database table, but the problem is that this table has a lot of links, foreign keys. The record should involve about 40 tables. Is there any way I can do this? I…
-
0
votes1
answer227
viewsQ: Group SQL values by two fields
I’m trying to group a table so I can make a Count, but I’m having difficulties. The structure of the table is as follows: ID - NOME - IDADE - ESCOLARIDADE 1 - João - 15 - Ensino Fundamental Completo…
-
2
votes2
answers155
viewsQ: How to notify people that they have been invited to install an APP
I’m developing an app for Android but I’m having a problem. Well, what my app does: I create a playlist within the app and want to invite people to listen to the playlist, what happens is that to…
-
2
votes1
answer2622
viewsQ: How to group similar objects
I’ve hit my head and I couldn’t find the logic to do it. Well, I have a list of objects (Police): List and these objects have several properties, for example: organization, year, context and others.…
-
0
votes1
answer71
viewsA: Equal inputs different outputs in Java
My code has two steps. 1 - Propagation 2 - Verification It turned out that in propagation I was creating Set as Hashset, and each time it propagated in a different way... Already in the check I was…
-
0
votes1
answer71
viewsQ: Equal inputs different outputs in Java
I’m going through a problem I can’t visualize solution. I’ll try to describe what I’m doing, it’s a lot of code files, so here’s the thing. I’m combining access policies. I have a certain policy…
-
1
votes1
answer247
viewsQ: How to manipulate iterator position
I need to compare all the elements of a list 2 a 2 am doing as follows: List: 1, 2, 3, 4. Comparison: 1 and 2, 1 and 3, 1 and 4, 2 and 1, 2 and 3... I’m using it as follows: Iterator<Policie>…
-
7
votes1
answer366
viewsQ: How to fill an ontology from Java?
I am working with ontologies, and have an OWL file in which my ontology is already all defined, classes, properties Object, among others. I use Protegé 4.1 to fill these policies, creating the…
-
2
votes1
answer121
viewsQ: Generating new objects using existing objects
I’m having a hard time doing this. Supposing I have two objects of the kind Person, which has the attributes name and employment. P1 (name=John, job=Taxi driver) P2 (name=Maria, job=Programmer) Then…
-
5
votes2
answers2674
viewsQ: Generate PDF with Jasper and download without storing it
I’m generating a PDF with Jasper, I’ll show you how it’s being done. I’m saving it on disk, storing the path in the bank and then downloading it. I would like to know how to make so that the moment…
-
8
votes2
answers663
viewsQ: How to make 3 nested Selectonemenu?
I’m creating a page that has to be 3 SelectOneMenu of the first faces. In the first I will carry a center (of the university), the second will carry an edict and the third would carry the…
-
0
votes1
answer171
viewsA: How to make a generated pdf file on Android appear as a download?
I decided as follows: I created a download manager and added the file. Doing this it adds the downlaods folder and the download list, and also shows a notification. File arquivo = getFile(fileName);…
-
3
votes1
answer147
viewsQ: How to convert a String of this type to a Date Object
I’m working with an Ontology at Protegé 4.1 and I have a Dataproperty that is a Datetime. I’m taking this Datetime this way: ["2015-06-30T16:38:53"^^xsd:dateTime] How do I put the date like this on…
-
5
votes1
answer422
viewsQ: How to create a sign-up page using JSF + Spring
I am creating a user registration page but am finding the following error: type Exception report message Unable to create instance for class: managedBean.Cadastrobean. Description The server…
-
2
votes1
answer128
viewsQ: How do you know if two periods intersect?
Let’s assume I have two objects that have the following property: Objeto 1: Date dataAtivacao; Date dataDesativacao; Objeto 2: Date dataAtivacao; Date dataDesativacao; How to know if these dates…
-
1
votes1
answer171
viewsQ: How to make a generated pdf file on Android appear as a download?
Well personal, I am developing an app and I Gero a PDF on Android at runtime. It turns out that the user does not receive any message, or anything, to know where the file is. I wonder if have how I…
-
0
votes0
answers240
viewsQ: How to force sign in with Android?
I’m having trouble developing a piece of my app. Come on. First I need to click on a button and access a certain link and then the application return me a PDF. This already exists through the…
-
1
votes0
answers67
viewsQ: Development of a Distributed Alarm System
My teacher went through some work to develop a panic button alarm tool, sort of. Where a computer (client) will trigger the button and another computer (server) will receive the notification and…
-
2
votes1
answer1368
viewsQ: How to search a snippet in a PDF remotely?
Is there a way for me to search an excerpt, or a word in a PDF that’s on the internet? I researched about CURL, some libraries, but found nothing. More or less this way: I have a website and in it…
-
0
votes0
answers46
viewsQ: Error while converting Android project to Maven
I created an Android project and right-clicked on the project > Configure > Convert to Maven Project. But soon after doing this the application does not start anymore, it presents the…
-
4
votes1
answer464
viewsQ: Error when using required inputs in Primefaces
I have some inputs from Primefaces inside a Wizard, showing only one of them: <p:inputText id="inputTitulo" value="#{editalBean.edital.titulo}" required="true" requiredMessage="Informe um título"…
-
2
votes2
answers6933
viewsA: How to download a . pdf file with JSF?
I got the solution with the first solution of the answer of Qmechanic73, but soon after also I was able to do using the Filedownload component of Primefaces: In my . xhtml <p:commandButton…
-
3
votes2
answers6933
viewsQ: How to download a . pdf file with JSF?
I’m using JSF and Primefaces, and I need to download a PDF that I generated with iReports and Jasper. I save the PDF this way, this way: String caminhoReports =…
-
1
votes0
answers670
viewsQ: Pass as parameter to Jasper an Object
I’m trying to create a report, now it’s already generating, but only when I pass Jasperprint the Jremptydatasource(). JasperPrint impressoraJasper = JasperFillManager.fillReport("D:/Edital.jasper",…
-
0
votes0
answers468
viewsQ: How to create PDF from . Jasper
I created a report on iReports and managed . Jasper, but I have no idea how to generate the PDF, I’ve tried several tutorials and nothing works, to create the pdf. What I need is to generate the PDF…
-
3
votes2
answers18011
viewsA: INNER JOIN with two fields of the same table
I believe you can do something like that, but I have no way to test it here: SELECT ped.cod_pedido, und_origem.nome as Origem und_destino.nome as Destino ped.obs, ped.usuario, FROM pedidos as ped…
-
1
votes1
answer294
viewsQ: How to set a Spinner value to an object
I have the following table: <p:dataTable id="tabelaDisciplinasSelelecionadas" var="disciplina" value="#{disciplinaBean.droppedDisciplinas}" rendered="#{not empty…
-
2
votes1
answer164
viewsQ: Manipulating two lists of a Drag and Drop component in different Managedbeans
I am using the Datatable Drag And Drop component. Contextualizing is as follows: I got a rap sheet based on footsteps. Where in the first step I enter the information of an Edict X, what is…
-
0
votes0
answers88
viewsQ: Inserting records into the database only after the insertion into a List
I do not know if I was very specific in the title, but I will try to be more in the description. I have in my database a table of Disciplines that contains: id name workload I would like these…
-
3
votes2
answers2737
viewsQ: How to create two different database connections?
I need to pass data from one database (DB2) to the other (Mysql), and I’m thinking about how to do this, as in the database I have the data I do not have access to some tools, how to do the backup,…
-
2
votes1
answer498
views -
1
votes1
answer498
views -
-1
votes1
answer308
viewsQ: How to "set" a Query in the @Entity annotation with Hibernate?
I have the following class: Java student. @Entity public class Aluno implements Serializable { @Id @Column(length=11, nullable=false) private int cpf; @Column(nullable=false) private String nome;…
-
2
votes2
answers953
viewsQ: How to install PHP server with separate components
A dumb question but I searched here and found nothing. I already have Mysql running on my computer, how do I install PHP without installing Easyphp, Xampp? Because usually these programs already…
-
1
votes1
answer554
viewsQ: SQL returns two records to a field, how to join them?
I have the following SQL code in DB2: SELECT p.nome_pessoa, a.dt_nascimento, alc.matricula, d.numero_documento, d.id_tdoc_pessoa FROM pessoas as p INNER JOIN alunos as a ON p.id_pessoa = a.id_pessoa…
-
3
votes2
answers270
viewsA: Modify XML features through Java
Dude, the visibility I know is possible yes. Just use findViewById in the layout and then use setVisibility, as follows: findViewById(R.id.layout_avancado).setVisibility(View.VISIBLE); The answer is…
-
5
votes4
answers6464
viewsA: Insertion of a dot every 5 characters
You can do it this way: <?php $string = "AAAAABBBBBCCCCC"; $array = str_split($string, 5); $novaString = implode(".", $array); echo $novaString; ?> Explaining what happens: You have separated…
-
2
votes1
answer1026
viewsQ: Map objects through Hibernate with "decentralized" data
I do not know if the decentralized term of the title is correct, if someone is not willing to change. But let’s get down to business. I have a scenario where I am developing a program that manages…
-
3
votes5
answers45344
viewsA: Access website on local network through my Android phone
I’ve come across this error, and I used Apache, and I solved it this way: In the folder apache bin.version. x conf\ open the file httpd.conf look for the line: listen 80 And change her to: listen…
-
4
votes1
answer76
viewsA: Function not defined error
I couldn’t understand your code very well, and I don’t know if it influences PHP, but try to declare the function before calling it. As directed by @bfavaretto you are declaring your function within…
-
0
votes2
answers2363
viewsA: Close all open jframes when opening a new one
One suggestion is just set Jframe’s visibility to false. jframeLogin.setVisible(false); And when you want it to appear again: jframeLogin.setVisible(true);…
-
1
votes1
answer1978
viewsQ: Page does not load Primefaces components
My page is not loading the Primefaces components, in this case a datatable. The end result is thus both in Chrome and in the Eclipse navigator itself: Just follow my code: listMarcas.xhtml…
-
1
votes3
answers242
viewsA: Show in alphabetical order table
Try using the query this way: $requete= "SELECT * FROM contact WHERE (id=$i) ORDER BY prenom ASC"; That way it will sort through the prenom field ascendantly, if you want descending just change by:…
-
2
votes1
answer2128
viewsQ: Error: "Lock Wait timeout exceeded; Try restarting transaction"
I’m developing a java application that uses Hibernate to do the mapping. I created the DAO’s of the classes, but when doing Insert, update and delete operations it returns me this Mysql error.…
-
3
votes1
answer367
viewsA: "cannot be resolved to a variable percentage"
You are declaring the variable within the scope of the method, i.e., it is only valid within where you declared it, in case you declared it within the setOnItemSelectedListener() method then it will…