Questions tagged as 'java'

1
answer

An error occurred while performing resource injection in the managed parent bean

Attempting to start a system page shows this error. I'll put the codes: DAO package br.com.netsoft.desif.dao.endereco; import java.io.Serializable; import java.util.List; import javax.persistence.EntityManager; import javax.persistence...
asked by 21.03.2017 / 12:09
1
answer

Doubt to save a data and update a div then

Good morning everyone. Just with jQuery and Ajax I can insert a data into the database and then immediately update a div on the page? Thank you.     
asked by 23.03.2017 / 13:50
1
answer

Ajax with java, via jsp

I need to pass information from a component that is on the jsp page to a controler that is in java. So I understand the best way is via AJAX. Municipality component <label for="municipio"><font style="color: red">*</font&g...
asked by 16.03.2017 / 20:22
1
answer

Create an exception intentionally

I can create an exception by dividing a value by 0 like this: try { int res = 100/0; } catch (Exception e){ Log.wtf(TAG,"Test Exception"); } But I do not know if that would be the most viable way. How could I exceptionally create an...
asked by 26.03.2017 / 05:32
1
answer

Check events that occurred in a certain period of time

I need to register the following event in my program: Players who kill 5 times during the 1 minute interval will win a prize. My class mapping is as follows: public class Game { private String name; private HashMap<String,Pla...
asked by 30.07.2014 / 20:29
1
answer

Error "No view found" closes my application [duplicate]

I'm creating a project with two screens, one with a button and the other with a list of phone numbers. However, when I click the button, the error message "Unfortunately app has stopped" appears. My MainActivity package com.examp...
asked by 13.04.2014 / 03:47
1
answer

JPA EclipseLink - Does not update entity

I have a relationship in Client JPA 1 - > 0 .. * Loans. So I have in the client class a List Loan set to do OneToMany. It turns out that when I add a client it updates the normal client list, however when I add a loan it does not update the L...
asked by 19.06.2016 / 21:21
1
answer

Apertium-caffeine

I downloaded the .jar from this library but it has nothing, no examples of how to use it in java, someone here has already used it or know how to use it in a java project I also downloaded% w / w but bone.     
asked by 04.07.2016 / 18:02
1
answer

How to create a list with Months to change the result of the DataTable?

I have a dataTable that brings the data of a specific month set in DAO. I would like to create a field where I select the month and it updates the table with the selected month. Do you have to use ajax?     
asked by 23.06.2016 / 22:57
2
answers

Asynchronous call to a RestFull WebService

I need to make a call to the WebService on Android, and with another class call it. At the end show in design the response obtained by ws. I've already done the WebService but that part of the "asynchronous" is not giving. This is my WebSer...
asked by 05.07.2016 / 13:35