Questions tagged as 'java'

1
answer

Relationship between entities

I can not delete the selected object. I have two classes, Autor and Livro , basic operating example, to learn how to use Java Server Faces, so far so good, working and so on. The problem is that in the @ManyToMany relation, when...
asked by 22.09.2014 / 14:34
1
answer

Problem sending list of datasource to sub reports

I'm having trouble opening a report with sub reports passing a datasource. In Ireport I run the report with sub reports normally, but the main report has a connection to the database and this connection is passed to the sub reports and each r...
asked by 14.10.2014 / 21:24
2
answers

Redeem only the body of the MultiPart response

I'm trying to download a JSON file, it's sent to me via MultiPart, I can recover it however I do not want to save it to a physical file, so I'm getting the return and converting it to string. My problem is in the conversion because it brings me...
asked by 13.08.2014 / 16:38
1
answer

Junit with spring Autowired

I have a big problem that in my GenericService I use an @Autowired in an HttpServletRequest (Even though I do not know the utility, therefore, I do not know the architecture so well), and I needed to use unit test for test battery in my services...
asked by 26.08.2014 / 14:02
1
answer

Change TextView Text

Suppose I have text inside a TextView, there is the possibility to change android: text remotely, without touching the xml, by means of a post in an external database, for example, a phrase thrown in on a bank which can be changed any minute, ca...
asked by 28.08.2014 / 20:10
2
answers

Error class expected!

With this code I get the error:    error: class expected import javax.swing.JOptionPane; public class MenorIdade { public static void main(String[] args) { String[] nomes = new String[5]; int [] idades = new in...
asked by 29.08.2014 / 10:04
1
answer

Validation with Toast and insertion in the bank

I'm risking Android, I'm very beginner and I'm having problems with my first insertion into the database. I also need to validate the fields on my form before sending. If possible, a touch of good practice goes well too. Acquiring the form da...
asked by 06.08.2014 / 03:00
2
answers

Add days to a jDateChooser

I would like to add 45 days to my date2, from the date1 Example: data2 = data1 + 45 public void adiciona(Usuario usuario){ String sql = "INSERT INTO usuario(nome,endereco,cpf,email,telefone,data1,data2) VALUES(?,?,?,?,?,?,?)"; tr...
asked by 07.08.2014 / 16:44
1
answer

How to get a value from a list

I need to get the value generated in the $ {stores.nmFrameLocator} field and give value display in the alert: storeMap () <script> function lojaMapa() { var tc = document.getElementById("dados-frame-resultado"); alert...
asked by 29.10.2014 / 15:01
1
answer

Java conversion to Objective-C

I need to convert this little Java code to Objective-C to execute a function in Objective-C, but it has an error that I still can not figure out. Java code: final char CHR0 = 0; String finalprotocolo = "" + CHR0 + ""; String ligartv = "/AR...
asked by 29.10.2014 / 11:48