Questions tagged as 'jsf'

1
answer

Pass a file name downloaded with p: fileDownload

I have a method that generates a PDF report with Jasper and returns a DefaultStreamedContent . I call the method no <p:fileDownload> this way: <p:fileDownload value="#{listarReembolsoBean.getSampleReportPDF(reembo...
asked by 24.08.2015 / 17:04
1
answer

Calling a JSF popup from a Managed Bean

I use this JavaScript to call a popup on JSF :    function showMyPage() { window.open('./showMyPage.xhtml','mywindow', 'resizable=no,toolbar=no,scrollbars=yes,height=450,width=530,top=145,left=235'); return true; } But,...
asked by 24.08.2015 / 18:34
1
answer

Space between columns in theGrid panel

I have 4 columns, and I want the last 2 more separated from the first. I can not. anyone help? Code: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or...
asked by 17.09.2015 / 19:11
1
answer

JEE Development and PrimeFaces

I'm following an Algaworks online course in JEE with PrimeFaces using Eclipse and Tomcat. When I start the application in Tomcat, it gives the following error: GRAVE: Critical error during deployment: java.lang.NoClassDefFoundError: javax/ent...
asked by 20.08.2015 / 23:32
1
answer

Because JSF is not respecting the inserted routes faces-config.xml

My application is no longer respecting the routes inserted in faces-config.xml, because? Here's the exception: Caused by: java.lang.NullPointerException at com.sun.faces.application.NavigationHandlerImpl.determineViewFromActionOutcome(Navig...
asked by 13.10.2015 / 15:52
1
answer

Error java.lang.NoClassDefFoundError in Java WEB with JSF

Hello, I'm getting the following error message when I run the project: java.lang.NoClassDefFoundError: javax/enterprise/context/spi/Contextual at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) a...
asked by 03.12.2015 / 18:58
1
answer

JSF does not find resource [closed]

Good morning. I am not able to display a screen because it is said that a certain feature is missing that is not quoted through the console and the error screen. Can someone give me some help? xhtml <?xml version="1.0" encoding="ISO-8...
asked by 10.09.2015 / 13:39
1
answer

The p: dataTable is not paging

Te a page that receives a param. <f:metadata> <f:viewParam name="id" value="#{MyBean.MyObject.id}" /> <f:event type="preRenderView" listener="#{MyBean.exibir}" /> </f:metadata> <c:set var...
asked by 16.07.2015 / 06:30
1
answer

Verify that the data entered by the user already exists in the database before inserting

I need to check in the database if the information that the user is trying to insert already exists, for example: In the registration of a company, I can not allow the same CNPJ for others. I'm doing in JSF 2 with JPA2 Hibernate. I did an exa...
asked by 20.04.2015 / 15:53
1
answer

Background image does not appear when I run the project

I have a JSF + Primefaces project and I have a css that puts a background: <h:body style="background-image: url('../images/textura.jpg');"> When I run the page it works perfectly, but when I give a run in the project the image do...
asked by 10.06.2015 / 20:11