Questions tagged as 'java'

2
answers

Behavior of Spinners with Bank Data in the Life Cycle

I have 3 Spinners inside a Fragment, the problem I'm having is when I spin the Tablet screen and the screen rebuilds, so the Spinners are reset. The first Spinner comes from the bank, depending on the selection of the first Spinner the second...
asked by 07.10.2015 / 19:13
1
answer

Send message to all managed beans

What features might I be using to display a notification on a page if an Exception occurs inside a ServletContextListener that runs a thread? The idea is to warn the user that something is out of the ordinary and stay fixed until the problem...
asked by 03.10.2015 / 08:26
1
answer

Upload image (GIF) in JavaScript?

I'm trying to display a loading image on my pages using these functions: $(document).ready(function(){ $(".loading").hide(); $.unblockUI(); $(".menuLink").focus(function() { $(this).addClass('link-menu-selected'); });...
asked by 02.10.2015 / 17:50
1
answer

Error while executing an HttpResponse in Android Studio

I'm trying to send a string from an Android application to a PHP page, but when I send it, an error occurs in the HttpResponse response = httpclient.execute (httppost); If someone can help me with any information to try to solve this probl...
asked by 05.11.2015 / 18:51
1
answer

How to integrate a Java code with one in JavaScript?

//retorna o usuário logado no sistema public class ContextObject { public static Usuario getUsuario() { ContextObject contextObject = ContextFactory.getContextObject(); return contextObject.usuario; } } //mostra em...
asked by 05.11.2015 / 12:43
1
answer

How to download a PDF that is in C: \

With the code below I can download a JPG, but with PDF it does not work. I already tried to change the last line for this, but it also did not work. file = new DefaultStreamedContent(stream, "application/pdf", fileName); <p:comman...
asked by 24.11.2015 / 14:33
1
answer

Problems connecting to PostgreSQL (ghost URL)

I'm working on a java web project and I have a connection class with the PostgreSQL database, which links to the database called BASE_X that performed properly, but I made a copy of the project that has this class and made another database in...
asked by 25.09.2015 / 21:30
1
answer

Uploading and Retrieving an Image with Angular

Let's say I have a user registration form where I want to save a photo of it. I send this data by POST to the server (Java) where I make the inclusion in the database. What better way (practice) to send this photo along with the other...
asked by 25.09.2015 / 20:12
1
answer

Navigation to pages in subfolders in JSF 2 does not work

I have the following problem: I have a hierarchy of folders where I separate my web pages from the project: Web |- Acoes | |- usuariosAcoes.xhtml | |- cadastrarAcao.xhtml |- usuarios | |- listarUsuarios.xhtml | |- cadastrarUsuari...
asked by 09.11.2015 / 15:10
1
answer

Rendered does not work on dataTable

Good afternoon. I have a simple problem. However, I have difficulty solving it. I have these 2 methods to control my Rendered from dataTable : // Filtra o simulado.. @Transactional public void gerarSimulado() { this.qu...
asked by 09.11.2015 / 21:26