Questions tagged as 'java'

0
answers

How do I import third-party libraries for a project in Eclipse?

I'm trying to use two third-party libraries for a Java project in Eclipse: iText (to generate a PDF) and JavaMail (to send this PDF via email), but I can not even import them ... I have tried everything. I already dragged the folder to the /...
asked by 27.05.2017 / 07:28
0
answers

Background PrintScreen in Java

I want to know if I can get print from a program running in the background I currently use the command: try { Robot robot = new Robot(); BufferedImage bi=robot.createScreenCapture(new Rectangle(valor3,valor4,189,24)); ImageIO.write(bi, "jpg",...
asked by 16.05.2017 / 19:37
0
answers

Android Alertdialog

Well, I'm developing an Android application and at the moment, I've encountered a problem for which I can not find a solution, I'll probably be doing something wrong, I hope someone can help me. The problem consists of the following: I have an a...
asked by 14.04.2017 / 16:49
0
answers

Passing data from one view to another

I'm trying to implement the following function, when the user clicks the edit button, it would send to the "create" page only that populated. but when I try to do this, it sends but nothing. In my xhtml is like this <p:commandButton valu...
asked by 16.05.2017 / 16:36
0
answers

A boolean button and dynamic menu with jsf Programming java html primefaces jsf

Hello, I need to make a boolean button with jsf (primefaces) and html and a dynamic menu that one button calls another, but I have no idea how to do it. Can someone help me? I started doing something, these are the codes     tests    ...
asked by 03.04.2017 / 15:48
2
answers

ConcurrentModificationException how to proceed?

I have the following method: private void houveAlteracao(Long id) { try { Objeto objeto = service.find(id); objeto.setEventos(JsfUtils.ordenarListaEventosPorHora(objeto.getEventos())); Objeto obj = p...
asked by 03.04.2017 / 18:21
0
answers

Thread initialization using interface runnable [closed]

I have a problem creating threads: The error is:    "The method UpdatesRunnableProduct (Branch, List,   ArrayList) is undefined for the type Principal " in the Main class: for (Filial filial : listaFiliais) { Thread threads =...
asked by 03.04.2017 / 17:41
1
answer

How to make a Spring Security, JSF 2.2 and ManagedBean login?

Hello. I need help. I'm configuring Spring Security in a JSF 2.2 Project. Using Annotation. I've already set up the filters. But I do not understand how to configure the ManagedBean of the login to search the database and log in to JSF. Below is...
asked by 03.04.2017 / 15:23
1
answer

How to map an entity with compound key using JPA?

@Entity @Table(name = "USUARIO") public class Usuario implements Serializable { @Id @GeneratedValue(strategy= GenerationType.AUTO) @Column(name = "ID") private Long id; @Column(name = "USER_NAME", nullable = false) pri...
asked by 03.05.2017 / 16:49
1
answer

Problem to retrieve data using Hibernate

I can list the Customer and their Animals, but I can not list the Breeds of animals. Follow the classes involved in the relationship: Client Class @Entity public class Cliente extends Pessoa { @Column(name="forma_pagamento", length=20...
asked by 09.04.2017 / 05:44