Questions tagged as 'primefaces'

0
answers

SelectOneMenu is not loaded when selecting object for editing

I have a SelectOneMenu (Primefaces) component of cities, which loads according to the selected state. My component has the following behavior, right after saving the object and then selecting it in DataTable through commandLi...
asked by 26.05.2015 / 01:55
2
answers

How to make 3 SelectOneMenu nested?

I'm creating a page that has to have 3 SelectOneMenu of primefaces. In the first one I will load a center (of the university), the second will carry a edital and the third would load the disciplines of this edital. The first SelectO...
asked by 07.07.2015 / 05:05
3
answers

Format date in Java web with Primefaces

Speak, I need to format a date in Java. I'm using Java web, Primefaces, MVC, TDD, JSF, Hibernate. I am an intern and I am doing a project manager project for my company. My date entry view looks like this: <h:outputText value="Data de...
asked by 23.09.2016 / 19:31
1
answer

How to restrict so that a larger date and then a shorter date are not used using Calendar Restrict?

Good evening! Here is my problem: I'm making a screen that has two calendars: Theprogramwillreturnmealistcomprisingtheintervalbetweentwodates.Onedateisfromthefirstcalendar,andtheotherfromthesecondcalendar.However,mycodebelowisnotworking.&...
asked by 28.05.2016 / 00:00
1
answer

How to take the refresh of the whole page when using the FileUpload component of the firstfaces

I'm using the FileUpload component of primefaces in mode="simple" and it works fine. But when I click the save button on a particular folder, it refreshes the entire page. Can you take it? Below is my XHTML code: <h:form e...
asked by 15.04.2015 / 18:54
2
answers

Save cropped image after upload

I'm trying to save a cropped image after the user uploads the image. The upload works fine and I can save the cropped image too, but something strange is happening. The image is only trimmed and saved if I put the image path directly into the im...
asked by 09.02.2014 / 12:33
1
answer

Redirect to another page only if the user is authenticated

I have a login screen where I authenticate a user, however when I put a action to change the page independently whether the user was authenticated or not the page is opened. My question is to know where I have to check whether the user...
asked by 10.06.2015 / 18:54
2
answers

Generate PDF with Jasper and download without storing it

I'm generating a PDF with Jasper, I'll show you how it's done. I'm saving to disk, storing the path in the database and then downloading. I would like to know how to do so that at the moment I click to generate, it generate and already downlo...
asked by 08.07.2015 / 04:01
1
answer

JSF / Hibernate How do I write null to a bank field?

I have an application using Primefaces / JPA-Hibernate / TomCat8, and need that when an on-screen field is empty, it writes null to the database (Postgres). I need this because I have some fields in the database that have UniqueKey, and e...
asked by 07.11.2015 / 17:31
0
answers

Error when deploying on Wildfly 8: Failed to define class

I'm getting the error below when trying to deploy my application after migrating from JBoss AS 7.1 to Wildfly 8.2 and from Java 7 to Java 8 and still can not identify the source of this error. I'm using Wildfly 8.2, Primefaces 5.1 and JSF 2.2...
asked by 29.07.2015 / 14:41