Questions tagged as 'jsf-2.2'

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

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

How to solve the problem of date validation - calendar - PrimeFaces?

When loading the date in a calendar (PrimeFaces) it loads normally: Code: <p:outputLabel value="Data de Nascimento" for="data-nascimento" /> <p:calendar id="data-nascimento" locale="pt" mask="99/99/9999" value="#{solici...
asked by 01.10.2015 / 01:38
1
answer

How to build a Layout Complex in JSF2?

I need to apply a Layout type on my system so that it looks the most like desktop system, so I looked for a layout template on the PrimeFaces website at the site below; link And as you can see there are several layout templates, but the...
asked by 21.07.2015 / 13:46
2
answers

Field validation problem

I'm having trouble validating two entity fields Order package com.algaworks.pedidovenda.model; import java.io.Serializable; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; import java...
asked by 03.06.2015 / 21:07
2
answers

NullPointerException error when using JSF EL

When I add this line of code to my XHTML page: <f:param name="pedido" value="#{pedido.id}"/> It generates this error: jun 04, 2015 10:59:42 AM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException GRAVE: E...
asked by 04.06.2015 / 16:03
1
answer

Problems loading dataTable PrimeFaces

I am using in the Java Web application CDI, JPA and Maven, my application is already inserting records into the database without any problem, now what I have left is to list the records in the PrimeFaces dataTable. Since I am a programmer wit...
asked by 30.03.2015 / 15:22
1
answer

Date format in select

I have this method: public List<LoteEnvEntity> findallByDate(java.util.Date dataDe, java.util.Date dataAte) { String strQuery = "SELECT L FROM LoteEnvEntity as L WHERE 1=1"; //SimpleDateFormat simpledate = new SimpleDateForma...
asked by 06.11.2014 / 11:37
1
answer

Problem with the "match" attribute of a text field

I'm using the match attribute of a <p:password/> , but it does not work properly. <p:password id="senha"/> <p:password match="senha"/> When I send the form via commandButton , an error message appears, saying...
asked by 27.11.2014 / 23:26
1
answer

How to pass data between pages?

I'm trying to pass some values between pages using ManagedBeans , but it's not working: @ManagedBean @SessionScoped public class Chute { private Boolean chutar; //getters e setters... } On the first XHTML page I have some <p:...
asked by 16.11.2014 / 16:38