Questions tagged as 'java'

1
answer

Android Widget - Permission Denial

I'm having a permission problem that has slipped a bit from my knowledge. Inside a widget I inserted a button, which when pressing I get the following message:    04-13 14: 10: 44.340: E / DatabaseUtils (2362): java.lang.SecurityException: Pe...
asked by 13.04.2014 / 19:35
2
answers

How to use the Quartz Scheduler with the Demoiselle?

I created a job using the Quartz Scheduler inside a Java web application that uses the Demoiselle framework with JSF and Tomcat 7. The job should call a method from a Business Controller (BC), which invokes a DAO to change the database. Howev...
asked by 29.01.2014 / 17:16
2
answers

How to disable Eclipse code replacement for "setters"?

When I create a class in eclipse with an attribute of type public class MinhaClasse{ private String variavel; } Eclipse underlines the word "variable" in yellow and if I right-click on it, it allows getters and setters to be generated f...
asked by 31.01.2014 / 13:58
2
answers

Display ListView with available networks

I'm trying to populate a ListView with the List returned by the getScanResults() method of the WifiManager class. However, I would not want to have to go through this list, after all, all the information I need is already in...
asked by 31.01.2014 / 14:57
2
answers

How can I get the reference of the selected class in the Eclipse Package Explorer?

I am making a plugin and when I right click on a Package Explorer class, my handler would get the class reference clicked. When I right click on a class in the Package explorer opens the menu, in this menu I created a new function (line),...
asked by 31.01.2014 / 19:53
1
answer

How do I get a list of Strings in a select from Struts2?

I have a select on my page that should have its value and its legend populated through a list of Strings that come from my Action. I'm sending the list correctly because I see the combo have the number of elements of the same size as the list...
asked by 14.02.2014 / 22:31
1
answer

How to calculate the XML DigestValue?

When signing some XML, the signer generates the DigestValue tag containing a hash. I can generate the digest value with a digital certificate, but I would like to generate this hash without having to have a certificate ... I have seen in some...
asked by 15.12.2013 / 19:11
1
answer

Get components that are inside an xhtml file

In a facelets (xhtml) source code of primefaces, I want to extract all <p:inputText> tags. After that, I want to get the label attribute. How could he accomplish this? Remembering that the components have different filled-in...
asked by 13.02.2014 / 15:31
1
answer

How can Maven webapp archetype work without web.xml?

I tried to create a Maven archetype webapp application in Eclipse JEE Photon: File > New > Maven Project > Next > maven-archetype-webapp 1.0 It generates the following file structure: . |-- src | '-- main | '-- ja...
asked by 02.08.2018 / 01:02
1
answer

A different object with the same identifier value was already associated with the session

When I edit a reservation I get this error in the console:    A different object with the same identifier value was already   associated with the session: [br.blumar.events.model.Route # 3883] Here is my Reservation class (which I want to...
asked by 13.08.2018 / 21:46