Questions tagged as 'java'

1
answer

Validate XML with XSD generated from a Class

How can I validate my XML correctly through an XSD that was automatically generated based on a class?     
asked by 16.10.2015 / 20:22
1
answer

Spring Transaction

I want to know more about transactions in spring. I have the following structure: My Service: @Service @Transactional public class MinhaClasseServiceImpl implements MinhaClasseService { @Autowired private MinhaClasseDao minhaClasse...
asked by 02.09.2015 / 16:21
1
answer

Error generating report with Jasper Reports using JSF

I'm following a tutorial which explains how to generate reports with iReport using JSF . I mounted my report in iReport and it is working perfectly, that is when I give a preview all the data the bank I selected is loaded into t...
asked by 21.08.2015 / 19:01
0
answers

How to do facebook post with java RestFB?

I'm trying to create a JavaSE application to make facebook posts, but I do not know where to start, I was seeing examples, but I only found on JSP . How do I log in to get the Facebook token? I thought about opening an internal "...
asked by 11.07.2015 / 20:00
1
answer

Get data from server without refresh

I have a script with a list of user friends and next to a box chat. Whentheuserclicksononeofhis/herfriendsinthelistthedataofhis/herID&NOMEaresenttoaopenWidChat(de,para,nome)functionthatreceivestheIDofthelogged-inuser,IDoftheuserclickedont...
asked by 10.07.2015 / 02:48
1
answer

How to list data from a Mysql database using the java List method (jdbc)?

I'm having trouble trying to list the data.    Exception in thread "main" java.lang.NullPointerException at template.Dao.getList (Dao.java:111) at main.Main.listarTravel (Main.java:161) at main.Main.menu (Main.java : 58) at main.Main.main (Ma...
asked by 01.07.2015 / 16:23
1
answer

Terminal emulator in Java Swing?

Hello! Everyone who has worked with Java at least once should have already seen codes intended for use in the console, such as the println() method, located in System.out . I wonder if there is any terminal emulator for Java Swin...
asked by 30.06.2015 / 18:33
2
answers

How to retrieve the return result of a routine from within a Thread?

I need to run a routine inside a Thread, and get the return of this method. My code is this way. class Main { public static void main(String[] args) { String resultado = ""; Thread t = new Thread() { @Override...
asked by 03.07.2015 / 12:39
1
answer

Label's and / or TextFields do not appear in subreport in JasperReports

I have a report with subreport in jasperreports, the problem and that when I run the report it is not displaying the contents of the labels or textfields that I put in the subreport, has anyone had this problem?     
asked by 02.07.2015 / 21:19
1
answer

How can I not refresh the page when closing a modalFanelPanel?

I need to close a modalPanel from RichFaces to the page where the modal call was not rendered. The action to close modalPanel looks like this: <h:commandLink onclick="Richfaces.hideModalPanel('modalRegistroItemAnalise');">...
asked by 16.09.2015 / 13:38