Questions tagged as 'jsf'

1
answer

JSF is specification or framework?

In the JavaEE GitHub there is the repository javaserverfaces-spec that in its README.md says:   JavaServer Faces (JSF) is the JCP Standard technology for authoring component based user interfaces on the Java EE platform. This...
asked by 19.07.2017 / 17:20
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
1
answer

Problem with redirecting in JSF 2

In a JSF project the pages are organized like this: admin / pages admin / main admin / template. My web.xml looks like this: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan...
asked by 21.11.2015 / 14:01
1
answer

Change validation behavior on Primefaces components

I have 2 generic templates for crud . (% 2) The search for the template CRUD . XHTML (Code 2) has the following logic: (When you open the page, all input fields are disabled when you click the first time on the Search button, it enables all...
asked by 25.08.2015 / 20:31
1
answer

Changed data in the database is not displayed in the PrimeFaces DataTable

I'm trying to disable the JPA cache (EclipseLink 2.5.2) through "persistence.xml", but it is not working. Changes made to tables, externally to the application, are not displayed in the PrimeFaces 5.0 DataTable with JSF 2.2. Environment: N...
asked by 13.04.2015 / 19:08
1
answer

How to make the p: editor of primefaces escape the special characters typed by the user before writing them?

I'm using the component of primefaces. My problem is that it is recording the accents that the user types in the text without doing the proper escaping HTML. Is it possible to change this so that he knows that the letter is an accent and needs...
asked by 16.04.2015 / 15:59
2
answers

Doubt with dataTable and / or JSF / JPA modeling

Good evening, I have the following problem ... at first it seems kind of silly, but honestly I can not get out of it I want to create a table where the columns are SUNDAY, MONDAY, THIRD, FOURTH, FIFTH, SIXTH, SATURDAY respectively ... and in...
asked by 18.02.2015 / 23:00
1
answer

How to pass parameter to a dialog with PrimeFaces?

I'm calling a Dialog through a button in JSF with PrimeFaces 5.1 enabling Dialog through onstart="PF('iconeDeProcessamento').show()" of the button. Does anyone know if it is possible to pass a parameter to the dialog?...
asked by 06.01.2015 / 17:44
2
answers

Error adding CSS / JS to the head of a page in JSF

I'm trying to include a CSS in a JSF view. However, I am not succeeding. Below is an excerpt from the view: <h:head> <h:outputStylesheet library="css" name="bootstrap.css" /> </h:head> The version of JSF is 2.2.12....
asked by 27.07.2015 / 21:54
1
answer

Dates Conversion to the Mysql database

Hello! Well, I'm using xhtml and primefaces. In my xhtml page, I have a date field and I use the converter to save to the database, I have a problem with the day. If I want to save 04/30/1989 In the database saved 1989/04/29 My fi...
asked by 02.11.2014 / 17:20