Questions tagged as 'java'

1
answer

Json Post Unsupported Media Type Spring MVC

I am doing POST using ajax data in JSON format to controller in Spring MVC , however the server is refusing such request Unsupported Media Type stating that the type is not supported. Is there a configura...
asked by 26.07.2016 / 22:44
2
answers

Hibernate: Increment from a specific value

I created an attribute of type Integer called registration and I want it, when the user registers, the value of this registration is generated automatically and saved in mysql from a certain value (Ex: 95000) and as others go if you regis...
asked by 18.07.2016 / 23:20
1
answer

Fill text field with return from another window

I have JTextField instantiated in class rel_tempo . When you click this JTextField , it calls another JFrame of searches. When I perform a search on this new JFrame and click Confirm , I need to fill in the JText...
asked by 11.07.2016 / 16:29
1
answer

Problem with connection control with the Bank

I'm having some connection problems with the database. Here is my code and the exception. Code @Repository public class MinhaClasseDAOImpl implements MinhaClasseDAO{ protected EntityManagerFactory entityManagerFactory = Persistence.creat...
asked by 11.07.2016 / 15:27
1
answer

Share object between two controllers in angularjs

I am studying AngularJS and I am trying to make a CRUD simple, but I am not able to have the same object of my listing for my form, that is, when I click the edit button go to the completed form by the object. I have Factory...
asked by 11.07.2016 / 18:32
1
answer

Autocomplete of Primefaces does not pass value to the bean

I have a problem with the autoComplete component of PrimeFaces. The value parameter is not being passed to my bean. private String filtroClientes; public List<String> listarFiltroDeClientes() { List<String> lista = new ArrayLi...
asked by 26.08.2016 / 02:53
1
answer

Error SwipeLayout android java. When I put it, it gives an error in the application!

I'm having an error in this code in my Android application, it gives error: package fabiohcnobre.hotelcolonialdosnobres; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.net.Uri; import android.support...
asked by 25.08.2016 / 22:02
1
answer

Icon gets small in notification

I have a simple notification, but the icon does not fill the whole part. I generated it through Android Asset and put each resolution in its respective folder in mipmap. Android 4.1 Notification Android5.0Notification Notificationnoti=new...
asked by 07.07.2016 / 01:55
1
answer

ListView Error with ArrayAdapter and Custom View

I want to make a product listing, where each line contains more than one information per line. The problem is that the app throws an exception (I believe) and closes when I click the button that would populate the list. I made a custom Vie...
asked by 06.07.2016 / 02:17
1
answer

How to configure JBoss AS 7.1 with Demoiselle 2.4.1 to operate with distributed transactions?

Hello My scenario: JSF / Demoiselle application that invokes an EJB method, both hosted on a JBoss AS 7.1.1 server. During insert and update operations on a CRUD page, the Demoiselle application has to save its data in its own DataSource and...
asked by 06.07.2016 / 14:32