Questions tagged as 'java'

1
answer

Browser does not reload the last page

My application is a simple web browser unique to my site, however I am facing a "problem" that is annoying. This is the following, I am using the application well, I leave it in the background and open another browser for example google chrome...
asked by 05.09.2016 / 00:59
1
answer

When to use _ or $ conventions in Java identifiers?

When to use _ or $ in the identifiers? That is, in which cases should I use _ or $ to make my code more organized. For example, should I use $ in front of variable names when constructing a framework ?     
asked by 14.09.2016 / 04:31
1
answer

Convert EJB and WEB modules to Maven

My project consists of three modules: EAR, EJB and WEB. I know that Maven goes far beyond dependency control, but to start I just want to use it to control dependencies. I tried to convert the EJB and WEB modules, some jars were not found, I hav...
asked by 16.09.2016 / 04:45
1
answer

Error accessing method in ManagedBean

I'm having problems accessing a method that stays in my ManagedBean, the idea is this: I have a page where I can check the records that are in the db from the "Browse" button and then the records appear, all in a good one however for each record...
asked by 14.09.2016 / 00:40
1
answer

How to retrieve data from an open HTML form in a WebView?

Hello! I have a responsive web application that I intend to open via android application through a WebView. Well, the only problem is that I would need to grab some data from the submit from only one application form to send to a bluetooth print...
asked by 15.09.2016 / 18:13
1
answer

Constraint error trying to persist with cascade

Good morning, I have the following problem Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-01400: não é possível inserir NULL em ("XXGOVC"."ASSINATURA"."ID_DIRETRIZ") And here is the mapping of my entities ... @Entity @T...
asked by 01.12.2016 / 14:37
1
answer

Why can not I access the elements inside an ArrayList with a for?

I'm trying to fill a JTable with elements that are inside an ArrayList, which is inside another object: private void jButtonConfirmarProdutoActionPerformed(java.awt.event.ActionEvent evt) {...
asked by 01.12.2016 / 19:18
1
answer

Sequence list implementation exercise

I'm trying to solve this faculty exercise in which I have already implemented a good part, but it still lacks 3 things. It is about data structure with Java OO - sequential list. Here is the code for the class in the list: public class List...
asked by 05.09.2016 / 00:43
2
answers

httpget + URI + HttpClient discontinued libraries. How to update code?

I need to access the Panoramio API to get some images based on the coordinates I've sent. However, I'm having trouble receiving the JSON value. After several searches, all indicate identical code, but the libraries used are discontinued....
asked by 02.09.2016 / 20:34
1
answer

Inheritance problem with HIBERNATE

Well, my problem is this: I have an abstract Employee class and two Attendant and Dentist subclasses that inherit from employee. I also have a User class, which has login attributes, ..., ...., ... and an employee linked to it. My...
asked by 27.11.2016 / 23:51