Questions tagged as 'java'

0
answers

Java ERROR: javax.servlet.ServletException: javax / enterprise / context / spi / Contextual

I'm new to Java and I'm having a hard time showing on the page a grid with data from a database table. I'm using java + hibernate + JSF 2 + tomcat 8. When I run my xhtml page it displays the below error. The problem is in the form's xhtml list,...
asked by 14.04.2016 / 02:12
1
answer

Primefaces does not see methods in my class

Here's my problem: In the xhtml below (list.xhtml) when I put it this way, it does not recognize the method I did in my Bean (the bean method returns a list). The JSF together with the primefaces is shown on the screen perfectly, only not ret...
asked by 19.04.2016 / 03:20
0
answers

Error as @ManyToMany (com.sun.jdi.InvocationException occurred invoking method) - JSF

Galera, I am trying to change the password of an employee, in my ManyToMany is giving an error: com.sun.jdi.InvocationException occurred invoking method Can anyone help me? OfficialBean @ManyToMany @JoinTable(name = "tbl_funcionario_h...
asked by 18.04.2016 / 15:23
1
answer

Combobox + Arraylist + SQL

Hello, I have the following problem in question: I made an array list to list data in a combo box, but it only lists the data in the first table, in the case: "catdesc", which is the description of a car category, whether it is Sports, etc. B...
asked by 19.04.2016 / 03:35
0
answers

How to rescue the position of a Sprite with Libgdx

I can not redeem the position of a sprite. I want to redeem the position of just a sprite how do I? public class Cubos extends Actor { Sprite azul, verde, vermelho, amarelo, cinza; public Cubos(){ azul = new Sprite(new Texture(Gdx.files....
asked by 19.04.2016 / 01:21
0
answers

HSQLDB shipped

Hello. I'm developing a Java application with HSQLDB. When I access the database with absolute path, everything works ok: String txtCon="jdbc: hsqldb: file: C: /ITA/workplace/hsqldb-2.3.3/hsqldb/db/crudfx"; Then I put the db folder insi...
asked by 19.04.2016 / 02:41
1
answer

How to add duplicate values from an array of objects and keep only 1 of each duplicate object?

Hello, I have the following problem and I'm having a hard time resolving it. I have a code that applies a mathematical formula. This formula ends up being applied several times. each time it generates an object the name and the result. The probl...
asked by 19.05.2016 / 18:20
1
answer

How to get URL value

Help me ... I'm stuck on the following question ... I need to get the user id that comes through the URL parameter, as below: localhost: 8080 / sgc / pages / generateSenha.xhtml? id = 3 But I do not know how to get this value "id = 3...
asked by 15.03.2016 / 15:23
1
answer

Socket / Threads (Java Client / Server)

I have a very cruel question. I have looked a lot and found nothing similar to solve my case. What I need is the following:    Customer side sends card number and purchase value    The server side receives this data and queries the da...
asked by 15.03.2016 / 19:55
0
answers

Train regular expressions to extract text data

Good afternoon guys. I'm extracting data from text using regular expressions. The problem is that the texts are generated daily and can happen to change the structure of the texts, so the expressions created must be changed frequently. Wou...
asked by 09.03.2016 / 18:29