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
votes1
answer104
viewsPrime faces,play data from a datatable for a dialog
screen contact <?xml version="1.0" encoding="utf-8" ?> <p:growl autoUpdate="true"/> <p:panel header="Formulário" id="panel"> <h:panelGrid columns="2"> <h:outputText…
-
0
votes0
answers167
viewsPrimefaces+JSF+Jasper JAVAEE
Well I am trying to generate PDF in my application and it is not working, when clicking the print button generates the following error 00:14:24,037 WARNING [org.primefaces.config.WebXmlParser]…
-
0
votes0
answers73
viewsPrimefaces 6.1 + HTTPS = IE11 error
I put a project JSF with primefaces stop rotating with https and when we enter the IE11 a surprise: it doesn’t work! Triggers a browser error like this: CSS3111: @font-face Detected an Unknown…
-
0
votes1
answer111
viewsNullpointerexception error while saving object
I select the object through the bean and the link in the data table change in a dialog and when giving the dialog’s Ubmit I get the nullPoiterException error. Someone would know why? Bean code…
-
0
votes2
answers478
viewsUpdate in datatable after you have updated data
Speak guys, I have a problem updating a column in my datatable after an edit. I use a dialog to edit the desired data. Everything is saving in the database, the problem is when updating the table,…
-
0
votes1
answer55
viewsData does not persist when saving with dialog box
I have a list where I want to select the item change a product table field and save to the bank through a dialog. Knowing that a product has several historical , ie the relationship is Onetomany .…
-
0
votes1
answer374
viewsHow to change the blue/red color of an edited field
I have the following screen : https://snag.gy/wmPBpM.jpg How can I change the field of the list, previsao1 so that it turns red or blue as I edit it and save by changing its value. Follow the xhtml.…
-
0
votes2
answers780
viewsStart with an already selected <f:selectItem
I would like when the menu is presented the "Option 1" starts selected, something like an html Selected <p:selectManyMenu id="basic" value="#{selectManyView.selectedOptions}"> <f:selectItem…
-
0
votes1
answer749
viewsError generating report with Jasper Reports using JSF
I’m following a tutorial which explains how to generate reports with iReport using JSF. I set up my report on iReport and it is working perfectly, I mean when I give a preview all data from the…
-
0
votes0
answers80
viewsSubistituir Requestcontext by Facescontext
I currently use the following functions which are from Primefaces: RequestContext.getCurrentInstance().update("ComponentTal") RequestContext.getCurrentInstance().execute("FuncaoJavaScript") How can…
-
0
votes1
answer419
viewsProblems with p:selectManyCheckbox using Enum
Good evening, I’m making a registration page but I came across a problem on p:selectManyCheckbox <p:outputLabel value="Nome" for="nomepa" /> <p:autoComplete id="nomepa" size="40"…
-
0
votes1
answer537
viewsError trying to validate @CPF and @CNPJ with Hibernate jSf2
Good evening I have a system project in Javaee with JSF2 Primefaces. I’m using the @CPF and @CNPJ mappings from Hibernate, in the same attribute. But this giving error "WARN: HV000129: EL Expression…
-
0
votes1
answer97
viewsUpdate datatable when searching for autocomplete
Good morning, everyone. Could someone ask a question? Good is the following, I have a component of the first faces autocomplete and a datatable, but when I perform a search for the autocomplete, it…
-
0
votes1
answer453
viewsUpdate a selectOneMenu (bean method)
Well I’m trying to get a selectOneMenu to fill another selectOneMenu and update a field, but I still don’t quite understand how to do. classes: package model; import java.io.Serializable; import…
-
0
votes1
answer190
viewsShow in Autocomplete the attribute of a specific user
I’m trying to make an autocomplete to show only the names of registered teachers. I believe the problem is in the search for the attribute, since to get the attribute I have to do the following way:…
-
0
votes0
answers49
viewsCSS not reflected in browser
I started a project in xhtml Primefaces, only when I make changes to the CSS it doesn’t change in the browser, only in the IDE. Browser design: Project in Eclipse IDE:…
-
0
votes1
answer22
viewsHow to change decimal delimiter on primfaces chart?
I’m having a problem that my decimal delimiter on graph component of the primefaces is set to be ., how do I change to ,?…
-
0
votes1
answer24
viewsHow to extract information from a video when uploading with Fileupload?
in the systems I am doing need to prevent the upload of a video with more than 1 minute and inform the user. Any way to do that? Thank you.
-
0
votes1
answer81
viewsHibernate is not generating id to write to the bank
I am handling a xls file, so far so good. I can perform setters and getters normally. however in save to go to the bank, id is coming null and with that not recording in the bank. I will post my…
-
0
votes2
answers338
viewsHow to save an upload file to the database with Primefaces
I searched a little about uploading files with primefaces and couldn’t find any example of code that saved a file in the database. You can save a file as if it were a class attribute?
-
0
votes1
answer126
viewsImage does not appear in the project
good morning, I am trying to put a pdf icon on my project, but it does not appear. I am using f:Facet this way. <h:commandLink> <p:graphicImage name="/resources/img/pdf.png"/>…
-
0
votes1
answer164
viewsShow preloader icon on site
I have a login registration page that calls a registration confirmation page, in case the person has to open the email, pick up the code received and set this registration confirmation page. The…
-
0
votes1
answer241
viewsError running JSF project by eclipse
Good evening , I’m trying to run a project in the eclipse, but Tomcat is throwing me the following exception. Does anyone know what can be? fev 25, 2018 8:57:57 PM…
-
0
votes1
answer66
viewsError to play search screen data for registration screen for editing
Gentlemen, I’m having a hard time getting the objs from my customer search screen, and playing it on the sign-up screen for editing it. My search screen is with a button with a <p:button…
-
0
votes1
answer736
viewsChange the color of Toolbar on primefaces
I wanted to change the background color of Toolbar what the tag would be <p:toolbar> <f:facet name="right"> <h:commandButton value="Sair" style="color: "/> </f:facet>…
-
0
votes1
answer56
viewsHow to migrate from spring security 3.0.5 to 4.2.3
I’d like to know how to get from Spring Secuirty 3.0.5 to 4.2.3 My xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee"…
-
0
votes1
answer34
viewsSpring Secuirty dependency error
I am not able to adjust the dependencies of my Spring security, I tried to download the libraries 4.3.5 however I could not deploy. I’m not using pom so I need help, my library: Error while…
-
0
votes1
answer466
viewsCould not Verify the provided CSRF token because your Session was not found
I’m using Spring security 4.2.3 and spring 4.2.5 when I run the login screen and the user registration screen works correctly however when I ask to access the home screen. this error appears:…
-
0
votes0
answers213
viewsPrimefaces p:selectBooleanButton ignoring Converter
I’m trying to get a p:selectBooleanButton is used to select the status of a registration form. The value of the attribute in the template is a Enum with two values that can be translated as True or…
-
0
votes1
answer112
viewsSelectevent autocomplete returns null object
I’m using the autocomplete and when I enter a field, it alone fills two other fields with the method handleSelect(SelectEvent event). But these two objects of these fields are getting null when…
-
0
votes1
answer239
viewsPrimefaces 5.2 inputNumber does not send the updated value to the Bean
When the submit of form occurs through the enter, being focused on inputNumber and changing its content, this new value does not update the variable in the Bean. However, if the submit occurs by…
primefacesasked 9 years, 2 months ago mwramos 155 -
0
votes1
answer112
viewsCalendar Primefaces losing style with ajax update
The first faces Component is losing style after updating with ajax in the view. What do I do to solve?
-
0
votes1
answer264
viewsCall method in bean if condition is true
I created this confirm: <script type="text/javascript" language="javascript"> function salvarAntes(){ var r=confirm("Deseja confirmar?"); if(r){ return true; } else { return false; } }…
-
0
votes1
answer620
viewsPrimefaces - p:fileDownload PDF
Hello, I’m trying to download a PDF in my application but I’m not getting it. When I click on the Download instead of downloading is checking in the form if the required fields have been filled in.…
-
0
votes0
answers176
viewsMany To Many JSF and JPA
Greetings my dear, I ask for help to resolve the following question: I have two entities in a relationship of many to many @Entity public class Livro implements Serializable { private static final…
-
0
votes1
answer81
viewsHow to change an image using commandButton in Java Primefaces?
Good afternoon, I’m developing a naval battle game in JAVA using Primefaces to make the front end. I would like a help to assemble a commandButton that when clicked, it triggers a function that will…
-
0
votes1
answer166
viewsReport to Jasperreports returning blank pdf table
Good morning, I have a system in javaEE Primefaces and Jsf, I created the reports with Jasperreports, it was all worked, but after an update of the Instancia linux ec2 AWS, the reports are returned…
-
0
votes0
answers26
viewsDynamic Datatable with Primefaces 6 + Display Objects in the Same Line
Guys, I looked at the primefaces showcase and I couldn’t find a solution. My question is the following I have a list of open accounts and would like to click open a page showing the open constants,…
-
0
votes1
answer121
viewsHow to change the caption of a Primefaces line chart?
I’m looking to change the font size and the square of the caption of a Primefaces chart via Javascript. My code: <script type="text/javascript"> function alterarGrafico() {…
-
0
votes2
answers4152
viewsHow to get selectOneMenu primefaces value?
good evening. I’ve been having a little problem for 3 days, I’m not able to get the value of selectOneMenu related to the product, example: I have three product categories: Tapiocas, Snacks and…
-
0
votes1
answer679
viewsLayout of many columns with datatable
I’m having a problem with datatable layout. I ended up creating a very extensive component (if I’m not mistaken, about 25 columns). I need to move one of these columns (year) according to the scroll…
-
0
votes1
answer510
viewsWhy does JSF not recognize the component id in the View?
JSF is not recognizing the "dialogo-analyze" id that is in the view and is giving the error : FATAL: Cannot find component for expression "dialogo-analise" referenced from…
-
0
votes1
answer111
viewsTo interrupt and return to xhtml error to display in <p:messages>
I have a processing of a <p:dialog> within this dialog I have a <p:messages>. <p:messages id="msg-dialog" showDetail="true" autoUpdate="true" closable="true" /> The messages of…
-
0
votes0
answers233
viewsJSF, Primefaces, <p:fileupload> stopped working after Chrome update
The fileupload worked perfectly until 3 Chrome updates ago, Firefox never worked, searched all over the internet for any solution or similar error and was unsuccessful. The page in question should…
-
0
votes1
answer75
viewsI cannot render a component after clicking a button
I can’t render the include component that’s inside a panel, I want to render by clicking a button inside a datatable, but when I click the button nothing happens View Arts Aptas a Book of Order…
-
0
votes1
answer149
viewsWhy is my selectOnMenu of the primefaces rendered differently?
Why are my components selectOneMenu primefaces is not fully rendered? Normal component of the primefaces: My rendered component : Screenshot of the problem. How to change prime css?…
-
0
votes1
answer191
viewsHow to run a <p:confirm> through the bean?
My question is: How can I execute one <p:confirm> through the Bean? I will explain the problem better. During the insertion of a record I need to check if it already exists in the list in…
-
0
votes1
answer74
viewsMethod not called when using command button
I have two methods in two different dialogs: adicionarRelato and RetificarRelato. The adicionarRelato performs perfectly at the click of command button in the first dialog. But the retificarRelato…
-
0
votes0
answers137
viewsRendered attribute not working in p:dialog
I need to render a form that is inside a panel in p:dialog and after I save the data, I want to hide it and render a p:fileUpload in p:dialog. But I can’t do it, I don’t know what’s wrong. The…
-
0
votes1
answer50
viewsHide and Render component in p:dialog
I need to attach files and save the path in the database. Attachments belong to an object that can have multiple attachments, so I created an entity to store the path in the database, however I need…