Questions tagged as 'java'

1
answer

Show suggestions while typing autocomplete

I have the following autoComplete : <p:autoComplete id="geracao" value="#{habilidademb.habilidade.geracao}" completeMethod="#{habilidademb.listarGeracoes()}" dropdown="true" var="bean" itemLabel="#{bean.nome}" itemValue="...
asked by 30.11.2016 / 23:46
1
answer

Injection dependency failure [duplicate]

I'm new to the Hibernate world and when I run this application, I get the following exception (error is relative to EntityManager persist): java.lang.NullPointerException Caused by: java.lang.NullPointerException at com.nataniel.a...
asked by 27.11.2016 / 03:27
1
answer

How to write about an image [closed]

I found this code on the internet and made some changes, but I'm not sure what's going wrong. Code: public class main { public static void main(String[] args) throws IOException { String key = "Lucas Caresia"; Buffe...
asked by 29.11.2016 / 19:49
1
answer

How to pass file from drawable as parameter?

I have a problem that should be simple, I want to move to another activity, a drawable as a parameter. Here's my Onclick function: img1.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v){...
asked by 30.11.2016 / 00:58
1
answer

How do I replace a string letter when it is masked?

I'm creating a game of gallows for further learning of programming logic. 1- I will mask textfield with *** so the user can not see the word. In my example, I created 3 buttons , respectively "A", "B" e "C" . Let's...
asked by 22.11.2016 / 17:28
1
answer

no such column _id (code 1) while compiling - SQL

I'm having problems with my code, could they help me. Follow the error below and after the codes. But for simplicity, I have a home screen and let me go to another to register and then I can go to another to list in the ListView, but at this poi...
asked by 23.11.2016 / 04:21
1
answer

Request without @XmlRootElement

I'm doing a simple user registration with Java and AngularJS. My request in javascript looks like this: $http({ url: "rest/user/register", method: "POST", data: $scope.newUser }); In Java, I have a method that gets the data i...
asked by 21.12.2016 / 16:15
1
answer

Make the button visible in a certain time

Hello, I'm trying to get the " X " button to close the ad after 15 seconds. I do not know the correct function for this anymore I did based on the time admob interstitial ads appear. See my code: MobileAds.initialize(getApplication...
asked by 12.11.2016 / 02:50
1
answer

Send information from one JSP to another via servlet

I have a page to list all projects. Each project shown will appear the edit button. I would like to submit the project information of the page list to the edit page via Servlet. When I send this form, in the Servlet the Project is null, I...
asked by 19.01.2017 / 18:02
1
answer

how to do the tap function on android notification

Hello, I have the following situation, it is a chat, and the user receives a message .. I want that when the app is minimized it receives an alert ... The part of the alert already did and it is working: @JavascriptInterface public void no...
asked by 29.12.2016 / 15:39