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
-
1
votes0
answers126
viewsSpring Security + CDI + Hibernatefilter
good afternoon! I am in a system with Primefaces, Hibernate, CDI and am implementing security with Spring-Security and control transactions with Hibernatefilter, declared on web.xml. I did all the…
-
1
votes0
answers187
viewsError in JSF page call + Primefaces
I have the following menu: <h:form> <p:menubar style="margin-top: -20px; margin-bottom: 20px"> <p:submenu label="Cadastros"> <p:menuitem value="Pessoa" /> <p:menuitem…
-
1
votes1
answer193
viewsExport datatable to PDF
I’m using Java,JPA,Primefaces,Wildfly, I have a datatable that I need to export to PDF,in excel just add the poi.jar that works but in PDF I don’t know which poi I should add, someone could help me?…
-
1
votes0
answers93
viewsI cannot delete my object in datatable - JSF
I am unable to delete an object in my datatable. NOTE: I can already persisistir and change. My Bean package com.irmaosuspension.controleservico.controller; import java.io.Serializable; import…
-
1
votes1
answer1111
viewsSave object with uppercase vs lowercase letter
I think I had posted a question previously equal to this, but I did not find. I have a Manufacturer entity where I want to persist, to avoid differentiating between upper and lower case letters, can…
-
1
votes2
answers385
viewsCourse Design Error primeFaces Algaworks
I’m Doing a Workshop of PrimeFaces by the company AlgaWorks, but is showing this error in the project in the file pom.xml. The complete code of the file pom.xml project…
-
1
votes1
answer584
viewsAfter requesting AJAX input no arrow value to Managedbean?
I’m building an address registration form and implemented the State and City combos respectively. They work as usual, with the city combo being filled in according to the value selected by the state…
-
1
votes1
answer45
views2 EL at the same value
My outputText is like this: <p:outputLabel id="codigoGrid" value="#{bean.loja eq null ? bean.codigo : bean.codigo bean.loja}" /> I am trying to make a tenacious condition but it does not…
primefacesasked 7 years, 7 months ago Roknauta 2,811 -
1
votes1
answer435
viewsPut dynamic theme Primefaces
I have two templates in my web project. I want to use a different Primefaces theme for each template. How do I do that? In the web.xml, when I put the Primefaces theme changes to all templates, but…
-
1
votes1
answer554
viewsHow to inform download PDF file name using Itext/Lowagie and Primefaces?
I am able to download the generated file, but I can’t set the name nor the . pdf, just download as index.xhtml. Does anyone know how to fix it? I call the method to generate PDF like this:…
-
1
votes1
answer65
viewsLock the enter key inside the <p:editor>
I’m using java, JPA and Primefaces with Wildfly. I have one from Primefaces that I want to block when the user presses the enter key there is no action. How should I proceed?
-
1
votes0
answers336
viewsProblem opening a modal
I’m using a framework called BootsFaces and every time I try to open a modal from a commandButton the modal opens but stays this way: As you can see the modal is not enabled. button that opens the…
-
1
votes0
answers120
viewsAdd new inputText to JSF page by pressing a key
I have a form where I can have several codes registered, I would like to provide only one inputText at first, if there is need to insert more than one code I press a hot key and then another…
-
1
votes0
answers157
viewsRecord attendance of students in the Database
I have a school management system, where, I aim to add an option for teachers to add the student’s frequency. I’m thinking of creating a transaction, where, each teacher accesses, the page that will…
-
1
votes1
answer951
viewsPrimeface components do not appear
Guys good afternoon already tried everything change the url of web.xml to *.xhtml but it will not, I added the library primefaces in the lib of WEB-INF, but the components do not appear. My web.xml.…
-
1
votes1
answer217
viewsDevelopment JEE and Primefaces
I’m following an online Algaworks course in JEE with Primefaces using Eclipse and Tomcat. When I start the application in Tomcat, it gives the following error: GRAVE: Critical error during…
-
1
votes1
answer184
viewsRepeated ID with facelets
The problem is that in a project I use facelets is telling me that there is a component with the repeated ID. Although I scanned the code behind the repeated ID, I couldn’t find it, so I believe the…
-
1
votes1
answer281
viewsConvertnumber JSF negative values
Negative monetary values when using the native JSF converter, <f:convertNumber type="currency"/>, stand with the character '-', before R$. For example: -R$ 56.134.726,99 .xhtml…
-
1
votes1
answer74
viewsPass a name to a downloaded file with <p:fileDownload>
I have a method that generates a PDF report with Jasper and returns a DefaultStreamedContent. I call the method no <p:fileDownload> thus: <p:fileDownload…
-
1
votes1
answer28
viewsdatable jsf collection
I have a question in jsf, I have a collection in my Bean List,I am printing it in a datable, but in my object Professional I have a collection of services, I wanted to print the collection of…
-
1
votes1
answer2395
viewsCalling a JSF popup from a Managed Bean
I use this Javascript to call a popup in JSF: function showMyPage() { window.open('./showMyPage.xhtml','mywindow', 'resizable=no,toolbar=no,scrollbars=yes,height=450,width=530,top=145,left=235');…
-
1
votes1
answer555
viewsProblem with Primefaces autocomplete
I have a <p:autoComplete> working, and I have a commandButton that opens a dialog so that I can make a new registration. The dialog opens, I fill the fields but when saving this exception is…
-
1
votes1
answer148
viewsSelectonemenu (Primefaces) field not saved in the seat
I’ve come to ask for your help again because I need to finish my CBT. I have a dialog which has several fields, one of them is a <p:selectOneMenu>. When I fill in all fields and go save, all…
-
1
votes2
answers1460
viewsMessage from "required" Primefaces
I have the following scenario : <h:form id="formValor"> <p:growl id="growlMessage" showDetail="true" autoUpdate="true" showSummary="false" /> <p:tabView id="tabViewVinculo"…
-
1
votes1
answer268
viewscommandbutton executes method, but being null values. Why are inputstexts values not being assigned to class attributes?
In all the examples I saw of the code below, the normal one was to start the xhtml page to create a new client-like object. Through the values entered in the inputs set the attributes of this object…
-
1
votes0
answers139
viewsChart primefaces does not display X-axis
I’m generating a chart using the Chart of the primefaces, but I’m having trouble generating the X axis. In show case of them they create several lists manually, but I’m just creating 1 list and…
primefacesasked 9 years, 2 months ago Vinícius Elias Moreira 11 -
1
votes1
answer600
viewsHow to change a dynamic template content when the user clicks a button?
I would like the middle of the page to be changed when the user clicks "login" or "registration". Can anyone explain to me how to do this? If you know tutorials that teach you how to log in and if…
-
1
votes0
answers45
viewsI have two classes one contains the fileupload and save file method... I want from the MB to call this class, which is the most correct way
follows the fileupload class public class FileUpload{ private String destination="D:\\tmp\\"; public void upload(FileUploadEvent event) { FacesMessage msg = new FacesMessage("Success! ",…
-
1
votes0
answers142
viewsProblem rendering JSF page
I have a very "boring" problem, yesterday I had a system JSF working perfectly with all pages opening correctly. When I enter the system today the page is like this: No component of Primefaces or…
-
1
votes2
answers81
views'javax.persistence.Rollbackexception' received when invoking action listening '#{}
I inform the values on the page, but the values are not persisted in the bank. It’s like my page doesn’t send the values to the controller classes. If the values are reported however, the error is…
-
1
votes2
answers722
viewsHow to edit a database value using JSF?
I’m trying to edit a database record using JSF. The logic is simple, there is a client list, and when you press the edit button in front of each client in the list, a form is opened, with inputTexts…
-
1
votes2
answers364
viewsDatatable of the first faces does not update selection variable
Based on the first example of the site Datatable Selection where a variable(linhaSelec) receives the value selected by clicking on a <p:commandButton/> I decided to mount my implementation but…
-
1
votes1
answer1973
viewsSpeaker gap in panelGrid
I have 4 columns, and I want the last 2 more separate from the first. I can’t help it.? Code: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0…
-
1
votes1
answer1317
viewsHow to solve the date validation problem - Calendar - Primefaces?
Loading the date in a Calendar (Primefaces) normally loads: Code: <p:outputLabel value="Data de Nascimento" for="data-nascimento" /> <p:calendar id="data-nascimento" locale="pt"…
-
1
votes1
answer7968
viewsjava.lang.Classnotfoundexception: javax.faces.webapp.Facesservlet
Trying to start my JSF application returns this error : java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet pom.xml <dependency> <groupId>com.sun.faces</groupId>…
-
1
votes0
answers105
viewsUncaught Typeerror: Cannot read Property 'Settings' of Undefined
I have a problem when I click on a button that is a approve button, every time I click on the button gives this question title error, this error only happens because I have these two grid below in…
-
1
votes1
answer84
viewsHow to access a "List" from the screen?
I am trying to access a list of values in my code through the JSF screen, but the screen does not find the method that lists the values, someone can help me? I want to access the method values…
-
1
votes0
answers44
viewssearch by CPF Asp.net
I have a web page on Asp.net that I programmed myself How do I My code search by CPF the client name. http://localhost:51115/Technical/Editartecnico? Length=13 @{ ViewBag.Title = "EditarTecnico"; }…
primefacesasked 5 years, 11 months ago Luiz Cordeiro Pessoa 11 -
1
votes0
answers15
viewsCan I get which "Serie" is selected in a caption of a primefaces chart?
I’m trying to get which caption item is selected on a primeface line chart. I’ve tried something like plot.series.isSelected, the maximum I could take are the maximum and minimum values of the x and…
-
1
votes2
answers112
viewsjava.lang.String cannot be cast to com.sisEnade.tcc.modelo.Questao
good afternoon. I have the following error: java.lang.String cannot be cast to com.sisEnade.tcc.modelo.Questao However, I was unable to resolve the error. The goal of the implementation is to create…
-
1
votes0
answers23
viewsListing dates with primefaces
I’m listing dates using convertDateTime, the problem is this way it always presents the day before what is being read database. Without the convertDateTime it presented the correct date.…
-
1
votes1
answer72
viewsHow to view Questions recovered from a DAO on the same JSF page
good afternoon. I have a page called simulated.xhtml in which I receive some parameters (Filter) to make a query in the database according to the filter. Everything is already working, what I wanted…
-
1
votes1
answer317
viewsRecaptcha does not render
I’m trying to put a recap in my view, but it doesn’t render at all and the following exception appears: Warning: JSF1090: Unresolved navigation case for the component j_idt200. View <!DOCTYPE…
-
1
votes0
answers64
viewsExample of Jparepository or Pagingandsortingrepository on a primefaces datatable
I am learning a little spring boot and have made an application of user/client registrations, and would like to put in my datatable of the first faces a Lazy pagination. Would someone have some…
-
1
votes2
answers437
viewsQuestion how to submit a JSF form using <p:confirmDialog>
I wanted to know how I send a form using the p:comfirmdialog. The idea is to get the message tem certeza ?, with the options sim or não. If you click sim, then it sends the Form. <p:commandButton…
-
1
votes1
answer266
viewsUpdate graphicImage after fileupload
I am trying to update the photo form when I send the image through the dialog via fileupload. The photo only appears after I press F5. <h:form id="form"> <h:inputHidden id="idPessoa"…
-
1
votes1
answer950
viewsTo display a list of images with saved path in the JSF2.2+ Primefaces 4 database
I’m having trouble displaying images on a datagrid using both img and graphicImage passing to these tags the path of the database. Could someone help? I’m using Tomcat 8. The last way I tried was…
-
1
votes1
answer324
viewsTarget Unreachable, 'reply' returned null - Selectoneradio
I’m not getting the value of mine selectOneRadio, comes as null: <p:dataTable id="exibePerguntas" var="questao" paginator="true" rowsPerPageTemplate="2,3,5,10,12" paginatorPosition="bottom"…
-
1
votes3
answers959
viewsHow to make a simple JSF download?
How to make a simple JSF download? I have a list of attachments on <p:dataTable> and would like to implement a simple download. I implemented with <a href>, the link about the file name…
-
1
votes1
answer527
viewsHow to break at the end of the checkbox line
The courses are coming out without formatting, there are more courses and are not appearing on the registration screen. How to break this in XHTML? Code: <h:panelGrid columns="2"…