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
-
3
votes3
answers3889
viewsTemplate and Themes for JSF/Primefaces
I would like to ask a question, and I believe it is quite simple. There are a wide variety of templates for Angularjs, Wordpress and etc. In the same site of Primefaces, has themes such as Modena,…
-
3
votes2
answers373
viewsSelectonemenu is not powered
I have a p:selectOneMenu and would like it to be fed with existing data in the database as soon as the page was loaded: xhtml. <p:selectOneMenu id="carros"> <f:selectItem itemLabel="Carros"…
-
3
votes1
answer1333
viewsConditional validation in Primefaces component
Hello! I have the following problem. I have inputText description which gets disabled by default. When I click the search button, it enables inputText and then instance an object for search. If I do…
-
3
votes2
answers949
viewsAdd field by clicking button
I am developing a client registration project, in a form using Primefaces I would like to click on a button and with this appear an inputText, if you click again, another appears and so on. This is…
-
3
votes1
answer550
viewsSelectonemenu is not sending the parameter to the Bean (Validation Error)
In XHTML, my Selectonemenu is giving validation error at Issue time: <p:selectOneMenu value="#{relatorioProdutosLogsBean.usuarioSelecionado}"> <f:selectItem itemLabel="Selecione"…
-
3
votes1
answer398
viewsui:include with JSF rendered does not work the actions
have two ui:include within a template, follow the example below: /*Desse Jeito ele entra nos metodo corretamente!*/ <ui:include src="../home/dados.xhtml"></ui:include> /* com rendered…
-
3
votes2
answers6933
viewsHow to download a . pdf file with JSF?
I’m using JSF and Primefaces, and I need to download a PDF that I generated with iReports and Jasper. I save the PDF this way, this way: String caminhoReports =…
-
3
votes1
answer162
viewsHow to get the values of the last 4 columns with Jquery
I have a panelGrid, and would like to know how to get the last 4 elements before a given of the same line. That is, I have a line, and the last element will receive the sum of the previous four.…
-
3
votes1
answer671
viewsHow to override CSS Primefaces added via Maven?
I am using Megamenu in my project, but its options are much larger than the width of the columns of this component, so the menu options exceed the area intended for them, which is very ugly. I added…
-
3
votes1
answer596
viewsIntegrate Spark using Maven
Hello. I bought the Theme+Spark layout of the primefaces. In the community they wrote me that to use the layout. I would have to import the file spark-theme.1.0.war. Once imported, the full set of…
-
3
votes1
answer738
viewsHow to get quantity of items from an Arraylist?
I’m trying to count how many items there are in one ArrayList, I already have something ready: private int quantidadeN = listaNotificacaos.size(); It should store the quantity within the variable…
-
3
votes1
answer261
viewsPrimefaces Mobile does not work p:Poll
I am implementing p:poll on a page that user can see their updated position in a queue. I tried to run on a page but it didn’t work, the updated queue position went blank in the field using…
-
3
votes2
answers728
viewsError in converting JSF
Error or Bug? Well I have an error appearing in the eclipse console, on the registration screen the form records perfectly, everything ok, but the console points: java.lang.NumberFormatException:…
-
3
votes1
answer110
viewsData is not saved in the database
I’m using Java, JPA, Primefaces, Wildfly and Mysql, not much to do, but it’s good to inform. I fill in all the fields, all right the check is performed. When I click save the success message is…
-
3
votes1
answer1027
viewscannot be cast to java.lang.String autocomplete primefaces
I’ve had this problem for days, and I can’t fix it. I am using primefaces autocomplete to search for customers registered on my system. I have already done my converter, I followed a tutorial and…
-
3
votes0
answers399
viewsEmpty bean with Primefaces
I created a page with a datatable and to register something I display the form on a p:dialog of Primefaces works perfectly, but when I create the layout of Primefaces to put my page inside the…
-
3
votes1
answer338
viewsDynamically update a primefaces table
Hello, I am creating a java register with Primefaces. I have the following problem: I have a screen in xhtml and it carries the registered data, so far so good. The problem is when someone on…
-
3
votes1
answer152
viewsMy List is not updated correctly with database data
I have a dataTable and a button that selects the object in each line of the dataTable. When I click on that one button Dialog is opened with some data and a Send button, when I click this send the…
-
3
votes1
answer299
viewsdoubts about Regex using Primefaces
I own a input, where when a name is entered in the field, ex.: João Da Silva, he of the error of Regex. In case this field should allow uppercase and lowercase letters. Now when I put space it does…
-
3
votes2
answers1109
viewsChange the Label color of a chart in Primefaces
I have a chart and the labels which are on the x-axis are with a very dark color and I would like to change this color, I have tried to change the color property of the graph but only the title…
-
3
votes1
answer69
viewsRequestcontext as null
I’m trying to update a component on the screen by RequestContext of primefaces. But there are 2 situations where the first one is I click on a link and the page give your refresh. The second…
-
3
votes1
answer2243
viewsFamous error: Conversion error when setting the value XXX to 'null Converter'
Good afternoon. I’m having the famous error "Conversion error when setting the value XXX to 'null Converter'." I’ve seen several topics here and in other forums, Showcase of the first faces and I…
-
3
votes1
answer1030
viewsHow to load picture graphicImage primefaces into different component
My idea at first is this: I have a component p:dialog header="Foto Funcionário" widgetVar="dlg" resizable="false", where I capture my image and crop, as soon as this image is cropped, I would like…
-
3
votes1
answer339
viewsShow data in a Datatable + JSF + Primefaces + CDI + Managedbean
Talk to me, people! I’m having a problem to popular a Datatable, I’m using Jsf, CDI. I believe that the name of teacher is coming normal because he is an object and the pupil is a List, But I don’t…
-
3
votes2
answers1060
viewsPrevent browser autocomplete
There is how to prevent, through code, the browser to make suggestions to fill in the login form? It is that the system will be used in laboratories and it would be boring the browser to suggest all…
-
3
votes1
answer267
viewsJSF page displaying Object reference value
good night. I have a JSF page called simulated.xhtml on which implement a filter to generate the simulated and I’m also trying to display results from the database that have already been filtered on…
-
3
votes2
answers804
viewsHow to use p:messages from Primefaces?
I defined the field nome using p:inputText to receive values, it is a field obligatory. How do I display a message showing that this field is required, using p:messages? I am also using JSF. Follows…
-
3
votes1
answer935
viewsJPA/Primefaces - Add/Remove records from a daughter table
I have a problem in a cadastral panel. There is a register of store network in which I am taking care of the implementation. I can normally insert and remove items from the datatable, but this is…
-
3
votes1
answer278
viewsDownload with 5.3 primefaces after 5.1 migration does not work
I am migrating from primeface 5.1 to 5.3 . It was to be simple, just change the version in Maven. But it’s not like that The p:fileDownload command no longer works <p:commandButton…
primefacesasked 8 years, 8 months ago Marcelo 901 -
3
votes1
answer1763
viewsUpdate a component that is in another form
Hello! Guys, I made a dialog that inserts fields into a list. This list fills in the values of a selectOneMenu, which is in another form: <h:form id="idFormDadosTeatro"> <p:panel…
-
3
votes1
answer893
viewsHow to popular a p:datatable with a List<> that contains two List<> attributes inside?
I spent all day today trying to do something that’s supposed to be simple but I couldn’t. The thing is, I’m wearing the primefaces and I’m new to it yet and I need some popular way of my…
-
3
votes1
answer248
viewsHyperlink login with user and password in email with JSF and Spring Secutity
I have a system in JSF(with primefaces) with spring security. When the user registers it receives an e-mail with user and password. Okay - It works. However I would like to send in the body of the…
-
3
votes2
answers64
viewsUnable to find Primefaces component
I have the following problem: I want to create a login screen and password. I’m using the primefaces to pick up the components, but I’m not getting the field to fill in the password. Analyzing with…
-
2
votes1
answer2169
viewsHow to know the execution order of the JSF component methods
How do I find out which order to execute methods in jsf? My doubt is based on the following, once a button was firing late a method, as it had not chosen correctly the method of the button. In this…
-
2
votes0
answers512
viewsPrimefaces and Eclipse Ctrl + click does not work
On jsf buttons of type h:commandButton and h:commandLink navigation by Ctrl + click works perfectly. <h:commandButton value="Edit" action="#{bean.edit}" /> But when I use the tags of the first…
-
2
votes2
answers3143
viewsHow to load a jQuery function when loading a page that uses JSF and Primefaces
I am using a function to check if all checkbox are marked to load a registered already filled. So I wanted to know how to call the function. function selectAllCheckbox() { var booleanArray = new…
-
2
votes1
answer245
viewsProblem with Primefaces running glassfish
I am developing a Java Web application using Primefaces to run on the Glassfish server on a Windows Server 2008. When running on my notebook as localhost works perfectly. Then I deploy on the remote…
-
2
votes4
answers2527
viewsHow to take the edge of a primefaces datagrid?
How do I take the edge of a primefaces datagrid??? follows the part of the code I use the datagrid: <p:dataGrid columns="3" value="#{projetistaBean.listaDeProjetistas}" var="projetista"…
-
2
votes2
answers1136
viewsHow to read a user-submitted file using Fileinputstream?
I would like the user to send a file . xls to the system and from this would be created a database. The method I have is working, but the parameter that Fileinputstream receives is a String…
-
2
votes1
answer147
viewsEclipse does not show java attribute hint
When I press on CTRL+Space and I click on attribute, Eclipse is not showing the attribute hint before Click. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"…
-
2
votes2
answers1647
viewsPrimefaces + Bootstrap Admin LTE Conflict jQuery
I have been working with Primefaces since version 2.1 and am currently creating a project in version 5 using Adminlte (http://almsaeedstudio.com/AdminLTE/) which is an administrative panel using the…
-
2
votes2
answers1113
viewsTooltip or Hint in rowEditor in Primefaces
I have a problem, I wanted to add a tooltip or hint by hovering the mouse over the edit, confirm and cancel icon roweditorand celleditor of Primefaces. I’ve researched and tried using css but it…
-
2
votes1
answer601
viewsproblem with CSS with Primefaces
I’m trying to get the edges of the field Modality, being that I can’t, I’m thinking a pesteira that I’m wrong. <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD…
-
2
votes1
answer725
viewsProblems with selectOneMenu
I have a table and in this table I have the option to edit. Clicking on the edit option opens the dialog and all fields (columns) of the current row I want to edit are filled in. A list is loaded on…
-
2
votes1
answer536
viewsFind out which Primefaces component performed an action using jQuery function
I want to make a refactoring in my code, and for that I need to get the id of a component that suffered an action. My target would be that I have two datatables, and wanted to take the id and from…
-
2
votes1
answer1965
viewsUpdate form dialog without closing it
How can I update my form dialog without closing the same? In other words, I need to search the address by the zip code, and throw it in the form, but I’m not getting it. Follow the code I’m using.:…
-
2
votes0
answers359
viewsNull parameters in JSF request
I’m trying to send a parameter to a Spring bean but I’m not getting it, the map is always empty. Below is my code: XHTML: <h:dataTable columns="2"…
-
2
votes1
answer475
viewsFormatting problems with <p:Columns>
I’m having trouble formatting a datatable with a fixed column and x variable columns. POJO @Entity @Table(name="avaliaprojeto", schema="somore") public class AvaliaProjeto implements Serializable,…
-
2
votes1
answer982
viewsHow to change page after inserting object in database?
I created a JSF page with a client form, after saving client by pressing the sign up button. The object persisted in the BD, and consequently I would like you to change pages going to the…
-
2
votes1
answer337
viewsError while trying to update a Primefaces dialog
I have a button that sits inside a column in a datatable, this button opens a dialog which contains a table with some data. But when I try to give a update=":frmPrin:dialogParecer" the following…