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
-
2
votes1
answer203
viewsNull pointer exception on a radio button
I’m trying to put two Primefaces radio buttons on one page xhtml: <p:selectOneRadio id="fis_jur" layout="custom" value="#{usuario.fis_jur}" required="true"> <f:selectItem itemLabel="Física"…
-
2
votes1
answer164
viewsManipulating two lists of a Drag and Drop component in different Managedbeans
I am using the Datatable Drag And Drop component. Contextualizing is as follows: I got a rap sheet based on footsteps. Where in the first step I enter the information of an Edict X, what is…
-
2
votes2
answers445
viewsI cannot generate a pdf file
Personal how to generate PDF file using ITEXT with JSF. The problem and the following, when I ask to generate the PDF file in a class having only the MAIN method, it generates normally, but when I…
-
2
votes1
answer125
viewsAlimentar Array Primefaces
Good afternoon Personal, I have 2 related table, one for orders and one for order items, soon I thought to feed an array with the order item information and on the same screen put order information…
-
2
votes0
answers160
viewsJPA(Hibernate) update entities automatically
I have the following question: I realized that when using JPA (Hibernate) + Spring in a JSF (Primefaces) application my entities are not updated immediately when performing a registration, for…
-
2
votes2
answers444
viewsToo Many Hibernate+Mysql Connections error
I have an application in development in Java using Hibernate and Primefaces, on the item listing screen I have the option to do a search for some information in real time using multiple filters.…
-
2
votes1
answer150
viewsPanelgrid does not share columns with Repeat
I have a panelgrid that I can not in any way divide in columns a ui:repeat, whatever the amount. <h:panelGrid columns="2" > <ui:repeat var="p" value="#{cadSetor.campos}" >…
-
2
votes1
answer667
viewsError changing Primefaces theme
Hello, I’m learning primefaces and I’m trying to change the theme of primefaces. For this I downloaded by Maven. The theme even appears in the dependencies. But the following message appears when I…
-
2
votes1
answer66
viewsHow to disable a button during ajax request with primefaces?
How to disable a button during ajax request with primefaces using p:ajaxStatus. I wanted to do it in a generic way, ex: all buttons will be disabled during ajax request;
-
2
votes0
answers69
views<p:dialog> does not work
I’m following the example of the showcase but it doesn’t work. An icon was supposed to appear and after I clicked on this icon it opened the Dialog but when I open the page is already like this:…
-
2
votes2
answers313
viewsUpload Primefaces Directory
I am uploading with Primefaces where the upload is in the Project Resources folder, but I want to use another directory for file storage, preferably in the root directory where Tomcat is. Any…
-
2
votes0
answers30
viewsInsert String in primefaces graph
I am mounting a graph, but I need to display the data of a field that is "String", however it only receive integer. Someone there has been there?…
-
2
votes1
answer716
viewsProblems with ui:repeat and ajax update
Good night. I’m having some trouble using the ui:repeat and ajax update of the first faces. My intention is to list the criteria from the id of the Decision Process to which they are linked so that…
-
2
votes1
answer167
viewsAction on the button to center text
Someone could help me as I could do so when I type any text into an input, then I have a button on top of my input in which I want to center this typed text. Could someone help me like I can do?…
-
2
votes1
answer473
viewsProblem with redirect JSF+Primefaces
I have a menu where I have a submenu Register and inside it a menuItem Usuários in my template, and also have a menuItem Sair. The problem is that the exit only works on the screen Home, which is…
-
2
votes1
answer344
viewsPrimefaces - Select Datatable line via Jquery, Javascript or PF
How do I select a line from a Datatable, using Jquery, pure Javascript or the PF javascript command?
-
2
votes1
answer97
viewsI can’t select multiple objects from my components
I am using a component of the primefaces, only when I select several items of this component I cannot select. I am using an Enum, it needs to be an arrayList? <h:outputLabel for="servico"…
-
2
votes2
answers215
viewsGraphics in Primefaces
I have a method that makes a query in the bank and returns me a List, in that List I have three data that interest me: Funcionário and StatusTarefa. Example: I have 2 Employees performing various…
-
2
votes1
answer203
viewsDelete method is not called when I click on a commandButton
I have an delete button that sits inside a column of dataTable and when I click on the same the method that is responsible for the user’s deletion is not called. datatable: <p:dataTable…
-
2
votes2
answers426
viewsLoad a large volume of data into a datatable
I’m having the following problem, I can load the data into my dataTable but it gets very heavy, until the IDE one hangs. How could I fix this problem? I heard about Lazy but I don’t understand how I…
-
2
votes1
answer397
viewsPrimefaces p:datatable without the "No Records found" message?
And I have a p:datatable: <p:dataTable var="ind" value="#{logIndPersistBean.list}" paginator="true" rows="10" id="table" rowStyleClass="odd-row, even-row"> <f:facet name="header"> Lista…
-
2
votes0
answers126
viewsHow I seek information from this autocomplete
<?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html…
-
2
votes2
answers2211
viewsPrimefaces p:datatable changing default message "No Records found."?
And I have a p:datatable: <p:dataTable var="ind" value="#{logIndPersistBean.list}" paginator="true" rows="10" id="table" rowStyleClass="odd-row, even-row"> <f:facet name="header"> Lista…
-
2
votes1
answer320
viewsGraphic Primefaces with Consultation by Month and Year
I am trying to query a chart per month and year that when I click on the chart series it will display the records belonging to that path. When doing the search the chart is mounted correctly…
-
2
votes0
answers107
viewsuse <p:contextmenu> with <p:editor>
I tried to use the contextmenu of Primefaces with the Editor component, but it doesn’t work. The menu only appears if you right-click on the toolbars. The Editor component body takes the name of the…
primefacesasked 9 years, 2 months ago Danilo Magrini 31 -
2
votes1
answer581
viewsAction <p:commandButton does not call Method in Managedbean
I am trying to call a method in my Managedbean, however the form is not submitted. Detail. I have a dialog that inside it I have some includes of other xhtml files, follows as this up to the moment…
-
2
votes1
answer202
viewsp:selectOneMenu no list
I’m in the struggle trying to popular a selectOneMenu with data from a Enum, but when I gave up and put the static data with f:selectItem I realized that still the field is empty. Even with value…
-
2
votes1
answer104
viewsDo not allow date 50 years back in the database
I have a JSF system and Primefaces 4.0 and I have a field <p: calendar> in which I did the treatment to not load dates in the current day Calendar up to -50 years. But still the user can type…
-
2
votes1
answer44
viewsI cannot update my dialog via commandLink on a datatable
My goal is to display the selected element in the datatable in the dialog, but I can’t update my dialog via commandLink, whenever I try, the application screen gets all messy and this error happens:…
-
2
votes0
answers487
viewsError: Could not Decode flash data from incoming cookie value Invalid characters in decrypted value[...]
How do I resolve this Hibernate error? It is specified as Grave: JSF1094: Could not Decode flash data from incoming cookie value Invalid characters in decrypted value. Processing will continue, but…
-
2
votes0
answers25
viewsFill a table by selecting a p:tab
I have two tables in different tabs and when clicking on each one, the table must be filled. I am using the same list to fill the two tables, what changes is the SQL for query that varies according…
-
2
votes1
answer27
viewsI’m hoping that clicking a jsf radio button with primefaces will disable an inputText
<p:inputText id="txtCidadeFora" value="#{moradorRuaBean.moradorRua.cidade}" disabled="#{moradorRuaBean.ishabilitaCidade == false}"></pmf:campoTexto> Could someone help me? In managedBean…
-
2
votes0
answers69
viewsWhy doesn’t my Managedbean receive the amount passed on the xhtml page?
I am in error of those who can no longer visualize the problem and maybe, you "looking from outside" can help me. The question is simple, I’m not getting the value of an input from my view in…
-
2
votes2
answers123
viewsI have a logic problem to filter the registration and editing of my consultation schedule
I am Using the Schedule component of Primefaces(6.2) My project uses: Postgres, Hibernate, JSF. With the code this way I can register a new schedule and I can’t add a new schedule for the same…
-
2
votes1
answer134
viewsProblems with LAZY - could not initialize proxy - in Session
I have a problem trying to load an object that is mapped as LAZY. I mapped my attribute this way: @OneToOne(fetch = FetchType.LAZY) private Obra obra; And I load the data at the time of opening the…
-
2
votes1
answer784
viewsCommandbutton - Error calling method
I’m beginner with JSF, web development, and I’m having a problem using the component Dialog, of PrimeFaces, within a DataTable. The idea was as follows: We have a list of gifts for a tea pot, the…
-
2
votes1
answer399
viewsCapture Schedule component month manipulation event
When using the component Schedule of Primefaces it is possible to manipulate the events of the buttons that change the current calendar month, the buttons marked with the circle in the image below?…
-
2
votes2
answers1400
viewsHow to sort a p:datatable
How do I sort a datatable by a text. For example my system is a service order system, I need the "Open" orders to come first. Follow the code of the datatable below. I tried to use sortby but it did…
-
2
votes1
answer72
viewsHow to make my image appear inside the ui:repeat tag?
I have a question. I am using JSF and Primefaces to make a website for ebooks and need to display the ebooks that are stored in the database. I can register the ebook normally, but when it comes to…
-
2
votes0
answers533
viewsTabview in Primefaces with Ajax
Next, I have a small problem, but I am following the same steps of the showcase of the first faces, but without success. I want you to fire an ajax every time a tab is selected, clicked. That way…
-
2
votes1
answer360
viewsHow to search for ID’s in the bank and display the names on the screen?
In my JSF + Primefaces project, I have the following entities: @Entity @Table(name = "geracao") public class Geracao { @Getter @Setter @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private…
-
2
votes1
answer159
viewsLoad image after selected item
In my application the user defines a root directory. After defining the root there is the listing of files present in the directory. When the file is selected there is another directory where there…
-
2
votes1
answer507
viewsMethod does not Override or implement a method from a supertype
I’m creating a converter and it’s giving me this mistake: Method does not Override or implement a method from a supertype Converter code: package com.mycompany.conversor; import…
-
2
votes1
answer100
viewsEffect of ajax on button
In the commandButton of primefaces we have u attribute ajax which may be true or false. What effect does it have on submission? I am making a silly example where the user type a name and triggers…
-
2
votes0
answers21
viewsChange Table Location Exported from Primefaces
I am developing a web system using jsf and primefaces and would like to ask a question. I’m using the dataExporter to export a dataTable in PDF.... I am using the method preProcessor to add various…
-
2
votes1
answer659
viewsShow only hours in the Primefaces Legend component
How to display to the user the option to select only hours and minutes in the component <p:calendar> of Primefaces I have two fields with start and end times to select, but even putting the…
-
2
votes1
answer74
viewsComposite vs. Bean CDI - How to access bean methods
I am trying to create a component to receive the user profile picture. But for this I need to make the component access the methods within the CDI bean of the page in question. I’m doing something…
-
2
votes1
answer42
viewsCode simplification
I have the following piece of code: <p:menuButton value="#{messages['relatorio']}"> <p:menuitem value="PDF" update="painelRelatorioResumoExpedicaoDesembarque" oncomplete="gerarRelatorio();"…
-
2
votes1
answer531
viewsUpload and Donwload JSF + Primefaces + Mysql files
How to recover the file name saved as BLOB from the database and display on screen? I am using a loop, to recover, the value saved in the database column, but returns memory values ([B@2248bd40):…
-
2
votes0
answers78
viewsInject EJB in Bean Spring
I’m working on a Java EE + Primefaces + JPA project with EJB. In the authentication part I decided to use Spring Security, but I’m having a hard time getting the EJB inside the Spring controller. I…