Questions tagged as 'jsf'

1
answer

Layout of many columns with datatable

I have a problem with datatable layout. I ended up creating a very long component (if I'm not mistaken, about 25 columns). I need to move one of these columns (year) according to the scroll bar. Move with the bar I already managed, using p...
asked by 04.10.2015 / 13:40
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

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

download pdf that is out of the jsf java application

I need to download some pdf files that are outside of my application, they are in the folder c: \ tmp \ How could you make use of primefaces to make these files available for download? I thought about saving in folder C: \ jboss-as-7.1.1.F...
asked by 23.11.2015 / 20:06
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
2
answers

Error org.hibernate.LazyInitializationException

Error when the class handling is filled with the data in the database, if there is no record, I can access my xhtml normally. In the class account I correct with fetch = FetchType.EAGER, but in the class handling this error persists, See the rel...
asked by 03.12.2015 / 20:06
1
answer

Change theme of primefaces

I'm trying to change the theme of primefaces, I downloaded all available themes using maven and my web.xml file looked like this: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
asked by 02.06.2016 / 02:01
1
answer

How to run a p: confirm through Bean?

My question is: How can I run a <p:confirm> through Bean? I'll explain the problem better. When inserting a record I need to check if it already exists in the list in which I am entering the CPF. So far so good. I give a message...
asked by 15.10.2015 / 02:07