Most voted "primefaces" questions
Primefaces is a JSF component library that features a large set of rich components that uses jQuery and jQuery UI behind the scenes. It supports the jQuery UI Themeroller CSS framework. There is also a specific set of rich components for mobile devices.
Learn more…748 questions
Sort by count of
-
24
votes8
answers17582
viewsUse Bootstrap and Primefaces without one interfering with the other?
I’m trying to use Bootstrap along with primefaces in a JSF project, the problem is that in most components I need to use JSF tags instead of the primefaces because the primefaces do some tricks with…
-
19
votes2
answers982
viewsSelectonemenu is not loaded when selecting object for editing
I have a component SelectOneMenu (Primefaces) of cities, which is loaded according to the selected state. My component is with following behavior, right after saving the object and then selecting it…
-
8
votes1
answer438
viewsReturn value processed in Javascript to the Managed bean
Is it possible to return processed value in Javascript to the Managed bean? What’s different in this process is that I run the JS method on the bean, like this:…
-
8
votes2
answers663
viewsHow to make 3 nested Selectonemenu?
I’m creating a page that has to be 3 SelectOneMenu of the first faces. In the first I will carry a center (of the university), the second will carry an edict and the third would carry the…
-
7
votes3
answers1691
viewsButton does not execute the Managedbean method
When I click the change or delete buttons, Managedbean methods are not executed. Anyone have any ideas? Some settings are missing on the buttons? Project: https://github.com/fercosmig/Forum…
-
7
votes1
answer1040
viewsHow to restrict so that you do not set a longer date and then a shorter date using Calendar Restrict?
Good night! Here’s my problem: I’m making a screen that has two calendars: The program will return me a list that comprises the interval between two dates. One date is from the first calendar, and…
-
6
votes2
answers1085
viewsSave image after upload
I am trying to save a cut image after the user uploads the image. The upload works well and I can save the image cropped too, but something strange is happening. The image is only cropped and saved…
-
6
votes1
answer640
viewsHow do the <p:editor> of the first faces escape the special characters typed by the user before saving them?
I am using the primefaces component. My problem is that it is recording the accents that the user type into the text without doing the proper Escaping HTML. There’s a way to change this so he knows…
-
6
votes1
answer1333
viewsChange validation behavior in Primefaces components
I have 2 generic templates for crud. The commandButton Template search CRUD.XHTML (Code 2) is with the following logic: (When opening the page, all input fields are disabled, when you click the…
-
6
votes1
answer622
viewsHow to take refresh from the full page when using the Fileupload component of the first faces
I’m using the component FileUpload of the first faces in the mode="simple" and it’s run normal. But when I click the save button on a certain folder, it refreshes the whole page. There’s a way to…
-
5
votes2
answers704
viewsComponent pe:Masterdetail does not work on dynamic pages
I’m developing a web app that aims to work like Facebook. During the navigation the page is not reloaded, loading via AJAX only the central content. I’m using Primefaces 4.0 and Primefaces Extension…
-
5
votes1
answer3313
viewsHow to pass parameter for a dialogue with Primefaces?
I’m calling a Dialog via a JSF button with Primefaces 5.1 enabling the Dialog through the onstart="PF('iconeDeProcessamento').show()" button. Can anyone tell if it is possible to pass a parameter to…
-
5
votes0
answers714
viewsProblem loading database image with JSF
I’m having a problem loading images from the database with JSF and CDI, below is the code for a better understanding of the problem. <ui:define name="titulo">Detalhes Anuncio</ui:define>…
-
5
votes1
answer5783
viewsConversion of Dates to Mysql database
Hello! Well, I’m using xhtml and primefaces. On my xhtml page, I have a field for date and use the converter to save in the database, I have a problem with the day. If I want to save 30/04/1989 In…
-
5
votes0
answers833
viewsError deploying to Wildfly 8: Failed to define class
I am getting the error below when trying to deploy my application, after migrating from Jboss AS 7.1 to Wildfly 8.2 and Java 7 to Java 8 and still cannot identify the source of this error. I’m using…
-
5
votes1
answer228
viewsChanged database data is not shown in the Primefaces Datatable
I am trying to disable JPA cache (Eclipselink 2.5.2) through "persistence.xml", but it is not working. Changes made to the tables, externally to the application, are not presented in the Primefaces…
-
5
votes1
answer1173
viewsRedirect to another page only if the user is authenticated
I have a login screen where I authenticate a user, but when I put one action to switch page regardless of whether the user was authenticated or not the page opens. My question is to know where I…
-
5
votes2
answers2674
viewsGenerate PDF with Jasper and download without storing it
I’m generating a PDF with Jasper, I’ll show you how it’s being done. I’m saving it on disk, storing the path in the bank and then downloading it. I would like to know how to make so that the moment…
-
5
votes3
answers1866
viewsFormatting date in Java web with Primefaces
Speak guys, 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 input view…
-
4
votes2
answers3171
viewsShow only month and year in Primefaces Legend
Like remover os dias of the primefaces? I tried the configuration below, but the days are displayed when the component is redeveloped. <p:calendar id="dataTeste" pattern="MM/yyyy" /> Here’s…
primefacesasked 10 years, 7 months ago Geison Santos 4,428 -
4
votes1
answer232
viewsHow to make the p:Poll component not interfere with the modal in Primefaces 3.5
I have a page that has a table in the center, this table is updated every 30 seconds using the component p:poll <p:poll interval="30" update=":centro" /> The problem is that I have a menu that…
-
4
votes1
answer1169
viewsSelectonemenu of Primefaces selects an item by pressing a hot key with CTRL
I have JSF forms with some keyboard shortcuts, for example, CTRL+S triggers Submit to save data. The problem is that when a key combination is pressed into a field <p:selectOneMenu>, the first…
-
4
votes1
answer704
viewsDetermine maximum height of a column title in Primefaces
I would like to know if it is possible to do the following: I need in a datatable define a maximum height of a column. Because there are some that the text gets too long and the column value is a…
-
4
votes1
answer442
viewsWhat is the relationship between the Primefaces ajax and the events
Faced with certain problems during my developments I arose the following doubt for example. When I use the tag ajax in the Primefaces, has the property event where we passed events, then I arose a…
-
4
votes1
answer134
viewsHow to get the value of the attribute "Lazy" of the datatable primefaces in the bean?
To get the attribute value selectionMode datatable (primefaces) in MB: DataTable dt = (DataTable) FacesContext.getCurrentInstance().getViewRoot().findComponent("IdForm:IdDataTable"); String sm =…
-
4
votes3
answers1367
viewsProblems to implement convert to selectOneMenu
Good afternoon. I’m having trouble implementing a selectOneMenu of objects in my xhtml. Keeps giving "Conversion Error". Could someone tell me the problem of the code below? Error code: Erro de…
-
4
votes1
answer2681
viewsHow to run a back bean method from a Javascript function?
I am developing a web page with canvas in HTML 5, it will be presented dashboards in real time, for this use Managedbean to return the respective values, I have a component developed in JavaScript…
-
4
votes2
answers1312
viewsOpen Dialog in primefaces as soon as the screen opens
I have a login screen where I have a dialog with the Login and Password fields. I would like it to open as soon as the screen was opened. I read that from version 4.1 of the first faces I have to…
primefacesasked 9 years, 5 months ago DiegoAugusto 8,694 -
4
votes2
answers528
viewsWeb application chat with Java and Primefaces
Well I would like to ask a question. I have to do a sort of chat where people can talk to each other. It will work like a chat of Facebook or WhatsApp for example, but I have no basis or reference I…
-
4
votes1
answer630
viewsHow to get the client’s requisition?
I’m trying to get the user session from the request, but I’m not sure if I’m capturing the request correctly: I have a Managed Bean (Sessionscoped) with data. The following block creates a user’s…
-
4
votes1
answer464
viewsError when using required inputs in Primefaces
I have some inputs from Primefaces inside a Wizard, showing only one of them: <p:inputText id="inputTitulo" value="#{editalBean.edital.titulo}" required="true" requiredMessage="Informe um título"…
-
4
votes2
answers1494
viewsAccess and permission control
I have a CRUD project to manage faculty and college courses using jsf+primefaces+jpa. My problem is this: There are the users who are the coordinators of the courses and the users who are…
-
4
votes2
answers862
viewsReading PDF with Defaultstreamedcontent. How to close it?
I have a JSF page where I Gero a PDF and need to show it on the screen. For that, I created a <p:media> It is working, but the PDF file gets stuck (never closed) and over time it ends up…
-
4
votes1
answer196
viewsselectOneMenu Does not list correctly
I am trying to put selectOneMenu in my code and I am in trouble. I want to list the months of the year, by clicking to select, it lists the names side by side and not one below the other as it…
-
4
votes1
answer1964
viewsImage upload with Primefaces on Tomcat server, only the image path being saved in the database
Fala galera. I’m a beginner in Java and am doing a small Dynamic Web project using Primefaces, JSP, Hibernate and Tomcat. Basically it is several forms of registration and one of them is the…
-
4
votes1
answer362
viewsUpdate the database correctly
Updated: Link with a video that better exemplifies the situation. I have a big problem, I’m having difficulties to update the database and display the updated data in 2 DataTables different. I have…
-
4
votes1
answer341
viewsHow to add data to a list whenever a <p:hotkey> is used?
I have a <p:hotkey> which is the Primefaces component for working with shortcuts. Every time I press Ctrl + 1 two new fields appear on the page but I would like every time I press this…
-
4
votes1
answer1762
viewsHow to take the value bound to a selectOneRadio and assign it to an attribute in a bean
I request help to implement a method/way to take the value bound to a selectOneRadio (which is an Enum) and assign it to an attribute within a Bean. After obtaining the value linked to…
-
4
votes1
answer505
viewsJSF/Hibernate How do I save null to a database field?
I have an application using Primefaces/JPA-Hibernate/Tomcat8, and I need that when a field on the screen is empty, it will record null in the bank (Postgres). I need this because I have some fields…
-
4
votes1
answer2259
viewsHow to send an object by parameter?
I have the following code snippet: <p:selectOneMenu id="agencia" converter="agenciasConverter" value="#{agenciasMB.agencias.agencia}" style="width:150px"> <f:selectItem itemLabel="Selecione…
-
4
votes1
answer152
viewsChange Selectonemenu
I am working with the tables Parents, Province and Municipality, using JSF, Primefaces and Ejbs. But when executing the Project gives the following error: javax.faces.Facesexception: /location.xhtml…
-
4
votes1
answer727
viewsGenerate pdf in java
Good afternoon, I would like a help regarding generating a pdf report in java. Well I am using the first faces to export this report. I created the first line with the fields as you can see in the…
-
4
votes1
answer66
viewsProblems with Nullpointerexception
I am making a Java application using primefaces 5.1 and was working correctly the part of deleting students in version 2.1 before upgrading to version 5.1. I am trying to delete a student, but this…
-
3
votes1
answer850
viewsPrimefaces Datatable Lazy - Table does not present records
I’m creating a Lazy datatable, but although the class load is loading the records correctly, the table remains empty. XHTML: <p:dataTable value="#{chamadoMB.chamados}" var="c"…
-
3
votes1
answer490
viewsGet components that are inside a xhtml file
In a source code facelets (xhtml) of the primefaces, I want to extract all tags <p:inputText>. After that, I want to take the attribute label. Could you do that? Remembering that the…
-
3
votes2
answers3040
viewsSelect all checkboxes by clicking another Primefaces checkbox
I have a question, how to select all checkbox that is inside a panelgrid? I saw that it is possible to do this via Avascript. But I was in doubt about how to perform the method because to select…
-
3
votes1
answer426
viewsHow to make a Spinner that only accepts numbers in Primefaces?
I am using Primefaces for a college project. How do I make "Spinner" not accept "Characters" only numbers? Idade: <p:spinner id="spinnerBasic" max="120" value="#{spinnerController.number1}"/>…
-
3
votes2
answers1597
viewsPrimefaces, button requires two clicks to perform action
While executing the code below, I have to double click on the button so that the delete action happens I saw many with similar problems, but no effective solution: <h:form id="TablePais"…
-
3
votes1
answer2881
viewsdatatable calls a dialog for editing, but editing is not effective. (prime faces 5.1)
I have a WEB application with 5.1 primefaces of a datatable I call a dialog for editing, but editing is not effective. I will describe with images and at the end put the full xhtml. I have a…
-
3
votes2
answers1390
viewsjpa jpql filter without using the primeface filter (with proper method)
Changed to likely solution however is not working yet, it seems to me that the line is not updated with ajax. <h:body> <h:form id="formTableProd"> <ui:composition…