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
-
0
votes0
answers175
viewsBar Chart Primefaces
Folks someone knows how to leave the primefaces bar chart this way? I tried to do here only that it alternates the colors, it leaves for example instead of three columns blue, 1 blue, 1 red, 1…
-
0
votes1
answer246
viewsJsf&primefaces CSS problem
Project -- JSF CDI Mysql //I am not using Maven Good afternoon, my question is this: I would rather use style="...." ; in xhtml code, to make the code more elegant, make use of css. for example, I…
-
0
votes1
answer172
viewsAfter registration, datatable is not updated
I have a problem where after registering my datatable is not updated. My button: <p:commandButton value="#{msg['salvar']}" action="#{encomendaController.salvar}"…
-
0
votes1
answer298
viewsClear form after registration (Javaserver Faces)
After having made a registration, it clears the form normally, but when I change page and return to the registration page, the fields are filled with the values I previously registered. The scoped…
-
0
votes1
answer56
viewsWhen returning validation error in the form, object gets the entered values
On the screen I have a datatable that I fill with a list of objects. Using f:setPropertyActionListener i set a list object to an auxiliary object and show it in a dialog. In the save method I speak…
-
0
votes0
answers41
viewsInfinite Loop Method
I have a method call that is made with <p:remoteCommand /> of Primefaces on my system’s home page. And it works perfectly with some users, but with others it goes through the method in the…
-
0
votes1
answer142
viewsProblems with <p:ajax> on primefaces
Good morning friends! I am a beginner in Java and am trying to develop a system for church management. After many attempts, I can make ajax work, but I am not able to recover the id of the state…
-
0
votes0
answers19
viewsMake Global selection in the App
I wanted to know how to make the selection of the global year in the application and work with the data only with the selected year. Do I have to make Managedbean Applicationscope? How do I navigate…
-
0
votes0
answers62
viewsSelectonemenu does not back the description of the object in editing
I’m performing a registration that has a relationship with another, I’m using Selectonemenu to bring it, when performing a new works all correctly, but in editing it is not bringing the object of…
-
0
votes0
answers84
viewsProblem to convert with composite key into jsf, selectonemenu
I am making a selectOneMenu where the itemvalue will be a composite key. Which will be separated by a hyphen. However, when sending, the getasobject method is called several times, sending all items…
-
0
votes0
answers272
viewsJSF error - The value of Columns attribute must be Greater than zero
I have this problem, specifically in the Selectmanycheckbox component. Follow the code of my Bean: package controle; import java.io.Serializable; import java.util.List; import…
-
0
votes1
answer162
viewsObject comes pro bean with all blank JSF fields
I have a list of Predio objects that is being iterated in my xthml Then, for each iteration, I create a panel and in each panel I display the name of each of the predicates in the list and a button…
-
0
votes1
answer514
viewsClose modal JSF
I need to do mine deleteConfirmationModal close. It only works by clicking on NAY. I need to make him perform the action of YES and close the modal. <p:commandLink title="#{label.REMOVE}"…
-
0
votes1
answer34
viewsHow do I make a for in a list and change results using javaEE
I have an object called (Bank) that has several accounts, with balance in these accounts I make payments of various expenses. what I want is to get all the expenses paid and to give low in the bank…
-
0
votes1
answer656
viewsp:graphicImage does not display image
Guys I’m having trouble displaying an image within my project in a Data Table. Simply the image is blank. The system makes a query in the mysql database of the image directory to know which image…
-
0
votes0
answers191
viewsPrimefaces Wizard skips tab without validating fields
I created a javascript function to validate form fields composed by the component <p:wizard> of the Primefaces. The function is called through the event onnext=""of <p:wizard>, that is,…
-
0
votes2
answers144
viewsWhen opening a dialog block tabs
Headlines How to do so when opening this dialog, block the tabs not to be clicked on my screen. <p:dialog id ="dlgPagamentos" widgetVar="dlgPagamentos" closable="true" resizable="false"…
-
0
votes1
answer111
viewsHow to find out which tab is enabled
I am programming in JSF using Primefaces. Here I am with a form that has 4 tab’s and I need to check which tab is enabled to be able to call my javascript and validate the data entered at the moment…
-
0
votes1
answer331
viewsJSF Open Image (Defaultstreamedcontent) on another screen
Hello, I am working on a project with jsf and primefaces, where I have an entity called Registry that has a list of images, these images are in a directory outside the project, which access to load…
-
0
votes1
answer125
viewsPrimefaces inputText Ajax, returns value missing the last character
I’m having a problem using the ajax of primefaces, I also tried with the ajax of jsf. I have the following code snippet: <h:panelGroup> <p:inputText id="skuProduto" size="20" maxlength="20"…
-
0
votes1
answer611
viewsDoubt in listing data from the JAVA database - JSF
Good afternoon, I have a doubt in listing data in a datatable, coming from the BD. I do not know how to return to the BD data view. Follow my code until the moment package…
-
0
votes1
answer72
viewsError executing JSF project
I am going up a jsf project, but give this error in the console. log4j:WARN No appenders could be found for logger (org.jboss.logging). log4j:WARN Please initialize the log4j system properly.…
-
0
votes1
answer48
viewsError while listing data in Datatable
Good morning, I’m trying to make a simple listing of a table on a primefaces datatable, but they’re not listing anything. Follow code until the moment. .xhtml: <!DOCTYPE html PUBLIC "-//W3C//DTD…
-
0
votes2
answers162
viewsI wanted to add more than one permission in the springSecurity roles
I would like to know the correct way to add more than one permission to the same folder in springSecurity because I wanted the admin to have the same access as the average user with an extra page.…
-
0
votes0
answers44
viewsI’m trying to upgrade from spring security 3.0.5 to 4.2.3
I’m trying to switch from spring security 3.0.5 to 4.2.3 but I’m having a serious dependency problem. In this project I was forced not to use mavem or something like that. And the problem (I just…
-
0
votes1
answer46
viewsLock send button when no file has been uploaded
So, guys, I have a fileUpload component from primefaces for uploading files. It turns out that even with the required="true", if the user click submit without having uploaded any file the system…
-
0
votes0
answers227
viewsFilter Datatable Primefaces does not work with p:selectCheckboxnu
Talk to me, people! I’m using the filter itself datatable of primefaces but it’s not working when I use it to filter the p:selectCheckboxMenu.When I select one of the options it doesn’t find…
-
0
votes2
answers103
viewsDoubt in Selectonemenu Primefaces
I have a Selectonemenu in my xhtml view. I have an onchange in it that when clicking calls a p:dialog to fill out a form. Follow selectOneMenu <p:column headerText="Mecânica"> <div…
-
0
votes1
answer90
viewsTraverse lines from a javaEE, jsf2, and Primefaces datatable with Keyboard arrows?
I found this code on the Internet, but part of it was discontinued xhtml: <p:hotkey bind="down" update=":testform:tabletest" action="#{aBean.moveDown()}" /> aBean: public void moveDown() {…
-
0
votes2
answers509
viewsLoad data into Inputtext JSF + Primefaces
I have a page that searches for a client and returns a datatable, with this return I would like to select the client that was selected and popular another inputText with the data that were selected…
-
0
votes1
answer85
viewsGrowl component "life" attribute only works the first time
We are running a JSF project using Primefaces (v5.0) and created a simple validation for blank fields in our form. The first time it is fired, the component performs the actions correctly. If the…
-
0
votes1
answer146
viewsMount recursive function for Treetable
I’m trying to build a tree of folders and questions with Java, Jsf and Primefaces. I have two lists, one is the one that saves the folders and subfolders, and another list is the one that assembles…
-
0
votes2
answers308
viewsIs it possible to filter a p:datatable when the filterBy attribute is a list of obejtos?
I’m using the P:datatable component of Primefaces and I’m having trouble with the filter. I have a list of Email Sectors and within that list I have another list with the aliases of each email.…
-
0
votes2
answers856
viewsHow to use p:fileDownload to download a specific file
I have a datatable and I want to implement a download button to download the pdf file from that specific line. I already managed to implement p:fileUpload and now I want to download this uploaded…
-
0
votes1
answer83
views"<p:message" Does Not Display Message in XHTML
Hello, I am implementing a register using the primefaces to present the critical messages performed in the bean. I’m using the Facescontext as below:…
-
0
votes0
answers49
viewsp:summaryRow does not work with p:Columns
I have a JSF page with a p:columns to show data analytically and a p:summaryRow to display the summary. Turns out inside of mine p:summaryRow, I have a p:columns, because I can’t predict how many…
-
0
votes0
answers63
viewsp:selectOneMenu does not correctly filter the dataList
I have a column with the filter p:selectOneMenu . I use it to filter a column that has lines that can have one or several attributes. Then I use the Primefaces component p:dataList to show this…
-
0
votes2
answers118
viewsI cannot make the LIST page work in JSF
I have the following code I am developing with JAVA JSF, primefaces, postgre, cdi, Tomcat: BUSCARBEAN package controller; import java.io.Serializable; import java.util.ArrayList; import…
-
0
votes0
answers37
viewsError showing list of images that were recovered from BD
Images are recovered normally, but do not appear in the gallery. NOTE: If I take a picture of the list and play in one p:graphicImage works normal. Mbean: package org.salomao.bean; import…
-
0
votes1
answer699
viewsUpdate JSF only works in the whole form (Primefaces)
good night. I’m racking my brain with a problem that seemed simple I have a form with some fields, when selecting a combobox I want to hide and display some fields. I am using p:ajax to perform the…
-
0
votes1
answer179
viewsAutocomplete with New Registration option - JAVA
I have a autoComplete on the sales screen, when the user enters the customer’s name I want that if it has no record it displays something like "ADD NEW CUSTOMER", I’m wearing primefaces:…
-
0
votes0
answers185
viewsError in Datatable - JSF 2.2 "rowkey" attribute with Primefaces 6.2
I’m a beginner in JSF and I’m having problem with the attribute rowkey datatable. He just can’t find the reference I put to my attribute var. It’s like the name I put on var only fit the components…
-
0
votes1
answer105
viewsImage in the Primefaces menubar
Hello, I have a problem that is not able to put an icon to the left of the menubar and the menu items to the right, someone can help me? <h:body> <h:form> <p:menubar> <f:facet…
-
0
votes1
answer47
viewsRefresh p:selectonemenu primefaces
I came across a problem I couldn’t solve. I have a p:selectonemenu that has a p:ajax with Event change. When changing its value it executes a Listener that arrow the values of other p:selectonemenu.…
-
0
votes1
answer103
viewsPrimefaces 6.2 onCellEdit - getNewValue() nn is receiving the new value
I’m doing a project with Primefaces and on a screen I use a Datatable with cellEdit and I followed the example of the right showcase and tals however the getNewValue and the getOldValue are coming…
-
0
votes0
answers92
viewsChange object in p:dialog taking object from datatable primeFaces
I have a DataTable with a button to add a note to the service. I can pick up the object, step to the Dialog, but my save button does not upadate the object <body> <ui:composition…
-
0
votes1
answer644
viewsError Rendering View - JSF + CDI + Primefaces
Good evening, I have the following context: My application uses JSF2, CDI and Primefaces, my view is yielding normally, however, if I start an F5 repeatedly ends up returning me the error of…
-
0
votes1
answer41
viewsError 500 when trying to read a PDF
The view is like this: <p:media cache="false" value="#{documents.readPDF()}" width="640px" height="480px" player="pdf" /> No bean is like this: public StreamedContent readPDF() { FileModel…
-
0
votes1
answer177
viewsJSF and Javascript
I have the following question: How JSF works with Javascript ? I’ll be more specific. I’m in a project where I’m using JSF (primefaces), but I can’t do anything simple with Javascript, which would…
-
0
votes3
answers97
viewsPrimefaces Autocomplete Component "disappears from the screen" after update in Managedbean
Good afternoon, I am trying to insert a product automatically after reading the code and update the components on managedBean. However, the component autocomplete disappears from the screen after I…