Questions tagged as 'java'

1
answer

How to resolve the "No appenders could be found for logger" warning?

I'm trying to set up Log4j in my project with JSF. I followed all the steps in a tutorial I found on Youtube . However, the following message is being posted: log4j:WARN No appenders could be found for logger (br.com.hidros.control.beans.Cont...
asked by 11.11.2015 / 18:00
1
answer

Change text in a JTextArea at runtime

Good morning everyone, I have a backup routine that should write the result to a JTextArea , at runtime. The copy works, the problem is that the window containing JTextArea gets stuck and does not append the text every time a...
asked by 10.11.2015 / 13:22
1
answer

Implement editing of contacts after being written to the database

Hello I'm adapting a aplicativo that manages contacts with banco de dados interaction. No aplicativo , I'm inserting and deleting contacts but I'm having trouble implementing método to edit the contacts and save the ed...
asked by 30.10.2015 / 03:03
1
answer

Customize webView error page android

Please have a webview in my android app, how can i customize it if the user does not have internet? Thanks Current webcview code: WebView wv=(WebView) findViewById(R.id.webView); WebSettings ws = wv.getSettings();...
asked by 23.10.2015 / 12:55
1
answer

Did the functional features of Java 8 make some design pattern obsolete?

Functional programming is said to make certain design patterns (thinking GoF) unnecessary. There's even a presentation showing it somewhere (I'm not looking now because I'm on my cell phone). Have the functional features of Java 8 made any de...
asked by 23.03.2017 / 17:56
1
answer

TO_DATE (SYSDATE, 'YYYY-MM-DD') works sometimes

I have the following problem: I use JDBC to connect to Oracle. And I call rs.getTimestamp(index) to get a date field. When I run the function TO_DATE(SYSDATE, 'YYYY-MM-DD') the getTimestamp sometimes returns a n...
asked by 14.03.2017 / 13:10
1
answer

I have a fragment that renders an xml but if there is no record I want it to render another page (xml)

I'm new to android and I do not know how to do that. Here's a little bit of my code. I'll check if there are no records if the list is not empty. If it is empty I need it to render the other page with no records. How can I do this? public Vie...
asked by 15.03.2017 / 15:06
1
answer

What are the cascade types in JPA?

I'm looking for information on the cascade types that exist and how they work in relational modeling with JPA. The types I found explanations were: NONE = Do not do anything with the object (default) MERGE = Update children when updat...
asked by 28.03.2017 / 22:35
1
answer

How to extract JSON Array into an object's List attribute of an object

I'm using the Flickr API to get the information from the images, which returns the following JSON:   per page ": 100," total ":" 5964 "," photo ": [" id ":" 21577339501 "," owner ":" 85277110 @ N02 "," secret ":" 31e850dfeb "," server ":" 578...
asked by 12.10.2015 / 01:32
2
answers

Java Fork / Join Does it work just like the C fork?

Discussing with a friend about a matrix calculation solution we are developing, the following question came up. Does the Java Fork / Join Framework work just like C? Reading a little, I could not understand C's work very well. Could anyone...
asked by 22.10.2015 / 15:24