Questions tagged as 'java'

1
answer

Expand column Excel Apache POI

I created this class with the necessary code to simulate what I need. The need is to generate an Excel file with some data and that the cell (cell size) is enough to accommodate the text. On most posts I found the prompt to use:    sheet.auto...
asked by 04.01.2019 / 03:37
2
answers

How to pass application context to the Adapter reading Json using AsyncTask?

private class GetEmpresas extends AsyncTask<Void, Void, Void> { ... @Override protected Void doInBackground(Void... arg0) { // Creating service handler class instance ServiceHandler sh = new ServiceHandler();...
asked by 30.01.2014 / 18:48
3
answers

Android development profile (Profile)

I was looking around here and I still have not found if there is a way, I think you also have it. When we are developing an application that uses some service, we have somewhere in our code the address of the server that we will use to send /...
asked by 30.01.2014 / 17:10
1
answer

Client REST process response in JSON without knowing domain objects

I'm doing a RESTFull server with Spring MVC, the controller only returns JSON, until then blz, would my client know nothing of the domain classes and still process the requests? I was thinking of turning JSON into an object as if it were a da...
asked by 31.01.2014 / 01:25
1
answer

Read multiple objects in Java serializable file

I have a Produtos.ser file where several objects of type Objeto were written. In the code method below, I want to retrieve all objects from the file and store them in an ArrayList list. However, it only adds the first object to...
asked by 07.02.2014 / 13:49
2
answers

Keeping an item in a ListView selected when pressed

I'm developing a listView, and I need to leave a selected item when I click, and then pick up the position of that item, so I can do the inversion of two items, what's up with what's down for example through button. I've been researching but the...
asked by 06.02.2014 / 14:41
2
answers

Sub report does not appear when run from within system

I already search several places, sites and the like and I do not think a way for the sub report to appear when the program is executed. Follow the codes if you need anything else let me know. Home <?xml version="1.0" encoding="UTF-8"?>...
asked by 04.02.2014 / 00:47
1
answer

POST disabled in JBOSS EAP 7

I have implemented a service with JAX-RS that has GET and POST operations: @Path("/funcionario") @Singleton public class FuncionarioService { private List<Funcionario> funcionarios = new ArrayList<>(); @GET @Path("/{no...
asked by 05.10.2018 / 14:21
1
answer

Values with different types Gson - Java

I'd like to know if there is a way with Gson to get values of different types in a "key-value" array in Json. Here's the example: { "events":[ {"event":"comprou-produto", "timestamp":"2016-09-22T13:57:32.2311892-03:00"...
asked by 06.10.2018 / 19:44
1
answer

Error - to create query for method public abstract org.springframework.data.domain.Page

I've been line by line to know what's different between an object that worked and what's going wrong and I can not find the problem. This Student object is giving error. If I comment on get sobe normal. Code error: org.springframework.beans...
asked by 27.09.2018 / 00:07