Questions tagged as 'java'

1
answer

Conversion error when sending input to controller to save

Good evening, I'm having trouble solving this problem, I hope you can help me ... When trying to save data from View only one field returns this error:    Failed to convert property value of type java.lang.String to required   type com.sisdco...
asked by 03.08.2018 / 02:16
0
answers

Classes nested in Java are like closures?

I've heard that nested classes have similar behavior to closures. Is this correct?     
asked by 27.09.2016 / 00:45
1
answer

Native query count does not return the same type in SQL Server and H2

Hello, I have a native query that does a simple count of records in a table: public Long contar() { String sql "SELECT count(*) FROM Order"; Query query = query.createNativeQuery(sql); // return... } In the system, we...
asked by 07.08.2018 / 21:47
0
answers

Connection with Access bank using java

I'm a beginner in java programming, and I'm trying to make a program that connects to a bank access and save the information there. I created a specific class for the connection and created a method to insert the data, however it is falling in t...
asked by 22.09.2016 / 13:58
1
answer

Jsf 2 - DataTable does not select the row in the click and does not recognize pagination

I am using Jsf 2 without Primefaces and would like to know how I can solve the following problem: My DataTable is loading the data correctly, but it does not allow me to select the line that was loaded into it at all, it...
asked by 23.09.2016 / 14:35
3
answers

Call a method of an inner class from outside

I have a class B and in this class I need to call a method, getSomething(type, option) , which is defined in a class A that is a class that extends AsyncTask and that is within class C. My class C is defined as follows: public...
asked by 27.07.2016 / 16:20
1
answer

Registration with Validation

Currently my system has Person and Time, a person can already create a Team, defining some attributes (name and passwordTime). Now, I aim to create a "Enter Time" method where any person will enter an existing team by passing the ID and Passw...
asked by 25.07.2016 / 14:02
2
answers

Android - How to access an Activity through a Papplet?

I have a class with extends PApplet and I want to migrate from it to another with extends Activity I tried through Intent but could not. Body of class PApplet: public class CamMain extends PApplet { public void...
asked by 28.07.2016 / 21:00
0
answers

How to open Certificate Store and select certificate with Java?

I would like to know how to open the Windows certificate store and select the certificate to be used using the Java language. Using CAPICOM and even the C # X509 classes, the result is this: But I can not reproduce the same result using...
asked by 14.01.2016 / 16:35
1
answer

Destroying Session and Session Objects in JSF

I'm using session.invalidate(); to invalidate the session, but when I access the Tomcat manger it shows me that the session still exists. The following code shows me that even after using the invalidate () method I can display informat...
asked by 17.01.2016 / 00:07