Questions tagged as 'java'

1
answer

PrimePush eventBus does not work and will give the errors

I'm starting to learn in practice with PrimeFaces giving PUSH. Follow the link link I have implemented the following code, using the Tomcat web server, I configured it in Maven, it is PrimeFaces in version 5.2 and atmosphere in version 2.3....
asked by 01.06.2015 / 02:31
2
answers

Image does not appear after it generates .jar

How do I make my image appear in the application after generating .jar? I'm doing it this way and it's not working. @FXML private ImageView image; @Override public void initialize(URL url, ResourceBundle rb) { File file = new File("src/ico...
asked by 01.06.2015 / 16:03
1
answer

How can I make the selection of this DataTable?

I've created a datatable of variable columns whose collection occurs from a list of objects with several different attributes. In detail, I have a class ProjectProject, which has a Project attribute, a Criteria, and a Scale. The number of col...
asked by 07.06.2015 / 23:30
1
answer

Problem reading properties file

I created a propertie file for the bank to read this file from there but the console gives me the following error: Erronull\properties\conexao.propertie (O sistema não pode encontrar o caminho especificado) Erronull\properties\conexao.properti...
asked by 08.06.2015 / 14:28
2
answers

Is it possible to make a comparison between items in two lists and if there is similarity between items not displaying this item in a dataTable?

I have a list that is populated by data from an xml file and another list that is returned from a query in the database. I would like to know if it is possible for me to compare existing code in these 2 lists. If the codes are the same, they do...
asked by 09.06.2015 / 19:32
1
answer

Problems with array printing

Parent Matrix: public static String [][] matrizPrincipal(){ String [] [] matriz = new String [2] [6]; matriz[0][0] = "Robin Arryn"; matriz[0][1] = "Lino Facioli"; matriz[0][2] = "145"; matriz[0][3] = "Vi...
asked by 17.05.2015 / 21:40
1
answer

Filter content below the main diagonal of an array

To get content that is below the main diagonal of an array would be the elements in the positions where the line is larger than the column?     
asked by 20.05.2015 / 01:06
1
answer

Query in HQL using Hibernate

How to make a query to return the result to below in HQL Result | quantidade | quantidade erro | desc | | 2 | 1 | TESTE 1 | | 3 | 2 | TESTE 2 | | 1 | 1 | TESTE 3...
asked by 06.07.2015 / 16:38
1
answer

Error in algorithm resolution that sums arguments in Java

I made this algorithm that performs the sum of inserted arguments, but it shows something else. package ExerciciosSintaxe; import java.util.Scanner; public class Ex7 { public static void main(String[] args) { int soma = 0;...
asked by 19.07.2015 / 00:29
1
answer

Email Sending via Proxy - JavaMail

This is my code: (UPDATED 2) I UPDATED THE CONFIG OF MY ACCOUNT. Allow access by external apps and it worked !!! PS: but I had to make the suggested changes too. So I marked the answer below as correct! MAIN CALLING METHOD: package Tud...
asked by 07.05.2015 / 16:23