Questions tagged as 'primefaces'

1
answer

Problems with p: poll that does not find Id

Folks, I have a div that needs to be refreshed in 5s periods, but it is giving error that ID is not found. <h:form id="form"> <br /> <center><h:outputLabel value="Visão Geral" class="titlePrincipal" /></c...
asked by 27.10.2015 / 16:09
1
answer

generic styleClass in table

I'm putting together a table and I wanted to know the following: I want to put a css style in the column headers, do I need to use a styleClass in each header or can I declare a generic for all headers? <p:dataTable styleClass="tabela">...
asked by 23.10.2015 / 15:13
1
answer

How to start in a certain tabindex (primefaces) tab?

How do I display one on a given tab? I tried to use tabIndex="#{meuBean.tabIndex}" setting to 0,1,2 and etc, but when opening it it always positions itself on the first tab.     
asked by 05.10.2015 / 19:42
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

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

Line break in message from p: confirm Primefaces

I'm not able to implement the line break in the following code: <p:confirm icon="ui-icon-alert" header="Confirma a alteração do Status" message="Tem certeza que deseja alterar a Situação do Candidato? O reenvio no período de 6 m...
asked by 24.11.2015 / 13:51
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

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
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