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
votes0
answers44
viewsFile . java without class signature
I was taking a look at primefaces code, when I came across the following situation (buttontemplate.java file): import java.util.List; import java.util.Map; import org.primefaces.util.HTML; import…
-
2
votes1
answer490
viewsGenerate columns with repeat Primefaces
I’m unable to generate these columns dynamically with the p:repeat of the Primefaces. Is there no way to do this in Primefaces? Or is there no way to do it? There is a better solution? The problem…
-
2
votes1
answer143
viewsDouble click primefaces button to run method
I am developing a Javaweb application with the Bootsfaces and Primefaces framework. On one of my screens I have a form with a Bootsfaces datatable that when clicking on one of its lines triggers the…
-
2
votes2
answers366
viewsProblems using Selectonemenu primefaces
I have a problem to update the data of a Selectonemenu in the primefaces, as suggested by the code below, I have a button that when clicked, brings data of a Webservice and stores in a variable of…
-
2
votes1
answer43
viewsHow to create a date search method?
I can in no way create a date search method that works. I’ve already been able to register the date and other attributes as well. I have already managed to list all attributes and also search all…
-
2
votes2
answers248
viewsDatatable column row with more than one attribute
I have a Datatable with several columns. One of them is a column that should display more than one attribute in each row of that column, as it is part of a Manytomany relationship. This column will…
-
2
votes1
answer162
viewsPrimefaces, p:fileDownload ajax="false" nullPointerException
Hello, I’m new here, I’ve searched for Google of life and here in Stack something similar but I can’t find. I’m not as experienced as DEV so who can help... The problem is the p:DownloadFile. At…
-
2
votes1
answer328
viewsPrimeng Rowexpand expands all lines, need it to expand only the selected
I need the expansion to be just in the line of the clicked icon, tried several ways but could not. I have the following html code: <p-table [value]="pacientes" [paginator]="true" [rows]="5"…
-
2
votes1
answer43
viewsProblem with datatable Selection, and how to access a var outside of the repeat method (primeFaces)
Hello I have a screen where I list some records through the datatable (primefaces) 1) In my Bean I have two lists one that I feed with the records returned from the bank and the other that will be…
-
1
votes1
answer664
viewsProblem disabling button on primefaces
I am trying to realize a logic of effecting the export button excel is disabled by clicking the search button if the number of records is equal to zero. The problem is that the first time it works…
-
1
votes1
answer1611
viewsHow to use Google Maps with JSF
I need to use Google Maps in a JSF application. Primefaces offers the Gmap. I also found the Gmaps4jsf. Which of the two approaches is the best, or if there are others, which one will bring me more…
-
1
votes1
answer1702
viewsProblem when trying to upload files using primefaces 4.0
I have a simple application that allows me to upload text files. To make these uploads, I’m using File Upload from Primefaces, but I’m having problems. I have tried several solutions and I can not…
-
1
votes3
answers1169
viewsHow to load the list of items from p:selectOneMenu when clicking to open the dropdown?
I would like my p:selectOneMenu to reload the items and show the options every time I click to open the dropdown, has anyone ever tried this? If so, how do I?
-
1
votes1
answer248
viewsFloodfill with primefaces. Catch coordinate of click on p:graphicImage
I want to make an image painting application using java. As it is for the web environment I chose primefaces as a framework for the vast documentation that exists about it. However I did not find…
-
1
votes2
answers1020
viewsLock a button inside a datatable in the primefaces
I have the following problem, I own a dataTable which contains the possibility of editing the data by editing by line, using the tag rowEditor and cellEditor. Next to this I have a button to delete…
-
1
votes1
answer259
viewsRendered of the first faces giving error while recovering entity Boolean
Can anyone tell why the rendered Graphic image is giving error??? <p:dataGrid columns="3" value="#{projetistaBean.listaDeProjetistas}" var="projetista" styleClass="ui-datagrid" >…
-
1
votes1
answer137
viewsWhat is the difference between these two statements?
I was reading some tutorials and documentations and came across two different ways to declare the RequestContext: RequestContext requestContext = RequestContext.getCurrentInstance();…
-
1
votes2
answers2504
viewsHow to run a JS or jQuery function after an update, Reload in JSF and Primefaces?
I need to run this function after a button gives an update="@form" on the page <script type="text/javascript"> function carregaCss(){ $(".ui-icon-calendar").addClass("glyphicon…
-
1
votes1
answer344
viewsHow to change only checkboxes visible from a datatable?
Problem situation, suppose we have a datatable on the first faces with the following features: The first column instead of the title has a checkbox with the label all. All rows in this first column…
-
1
votes1
answer1415
viewsThe JSF Autocomplete component does not work
I am with an application that should enter Social Reason, CNPJ and the city, the two fields Social Reason and CPNJ are working normally, however the field that has to type the city is giving this…
-
1
votes1
answer58
viewsWhat Doctype do I use in Primefaces?
I merged a project using Primefaces + Primefaces Mobile, and I don’t know which Doctype to use. I can use HTML5 Doctype?
primefacesasked 10 years ago lamumba 11 -
1
votes1
answer906
viewsDoubts in the use of the dataExporter
Guys, I’m using the primeFaces support to pdf the contents of a datatable. The problem is that the pdf does not bear the name of the columns, only the content. In the examples I saw in the showcase,…
-
1
votes1
answer665
viewsProblem using Dialog Prime Faces
Good night, I’m developing a simple CRUD using JSF, but I’m having trouble using Prime Faces functions. I want to make the insertions, changes and exclusions through Dialogs...but so far I could not…
-
1
votes1
answer762
viewsJSF does not find component ID
I have something like <p:panelGrid id="tabelaUm"> <h:form id="formUm" rendered="#{condicao ? true : false}"/> <p:commandButton action="#{condicao = false}" update="formUm,…
-
1
votes1
answer161
viewsFileunput Primefaces does not update the attribute;
I have a repeating structure: <ui:repeat var="item" /> Inside it I print some fields. One of them is the <p:fileUpload/> So far so good. The problem is time to do the action, when I…
-
1
votes1
answer161
viewsOutputtext only updates after Tomcat Restart
I’m using Tomcat 7, Eclipse Juno (on Windows 7) and Primefaces 5 for my application. After registering some information in the database (vaccines for vaccination booklet), access a screen…
-
1
votes1
answer145
viewsMethod not found:
When I click the save button to run the method, the following error appears in the console: Jan 15, 2015 4:12:26 PM com.sun.faces.lifecycle.InvokeApplicationPhase execute Advertência: Method not…
-
1
votes1
answer383
viewsPrimefaces put Filter in the footer instead of the header
In this example we can see that filterby adds the filter in the header and I would like to put it in the footer. Someone would know how to do it or even have used it?…
primefacesasked 9 years, 9 months ago Giovane 11 -
1
votes0
answers303
viewsJSF + Primefaces 5 - Same Status as Page P/ Multiple Users
I’m having a really hard time with the PrimeFaces 5 + JSF. I have two applications in the company where I work and the same ones running on intranet, but when someone executes something, queries or…
-
1
votes0
answers98
viewsTree Primefaces - node is not selected with the right button
I switched to version 5.1 of Primefaces and now when I right click to open Contextmenu node is not selected. In version 5.0 it worked correctly. <h:form> <p:tree id="plano"…
primefacesasked 9 years, 8 months ago NilsonUehara 3,105 -
1
votes1
answer1931
viewsAligns in the same row rowEdit and other buttons in Primefaces
I’m in trouble where mine dataTable owns the property editable set to true. Allowing editing of the line the user selects. Well, when putting a button to delete for example I’m having trouble that…
-
1
votes1
answer621
viewsUpdate event in "p:commandLink" component does not render
I have a datatable presented within a Dialog primefaces, when I click on commandLink of the line I desire, I want to take that value and render it within a inputText from my screen, but I’m getting…
-
1
votes4
answers2941
viewsPrimefaces datatable number formatting
How can I format a datatable column (ZIP) with the mask "00.000-000"? Example: Valor: 90560120 - Exit: 90.560-120…
-
1
votes1
answer60
viewsTurn 3 CSS classes into one
I have these three classes css, and I wonder if it is possible to turn into one, it would be used in panel grid of Primefaces .panelGridCenter { margin: 0 auto; } .gridNoBackground tr{ background:…
-
1
votes1
answer618
viewsHow to correctly export footer with Xtensions primefaces
Use JSF 2.2 and Primefaces 5.0 Using the Extensions primefaces to export, in a single excel file, three tables of a system, I’m having problems with the exported information: The table footer with…
-
1
votes1
answer450
views<p:datatable> with variable column amount
Good night. Can anyone tell if it is possible (and how to do it) to create a datatable of the first faces whose column number is variable? For example, imagine two cases, A and B. In set A I would…
-
1
votes0
answers220
viewsColspan and rendered do not work in Subtable
I have a Datatable with Subtable, I use Column renderings of both tables and colspan in some columns. Rendered and colspan tags in subtable do not work as expected. Look at the code: ```…
-
1
votes1
answer1093
viewsBackground image does not appear when running the project
I have a JSF+Primefaces project and I have a css that puts a background: <h:body style="background-image: url('../images/textura.jpg');"> When I run the page works perfectly, but when I give a…
-
1
votes0
answers36
viewsHow much scrolo the datatable up it goes up all at once (Primefaces mobile)
I am using Primefaces mobile and to present some data I am using the datatable, I make a query and it lists the records normally, while I roll the logs down using my mobile browser it descends…
-
1
votes1
answer358
viewsGoing to a particular tab
This is my menu: <p:menubar> <p:submenu label="Clientes"> <p:menuitem value="Cadastro" action="#{nomeBean.cadastrar} outcome="funcionario.xhtml" /> <p:menuitem value="Consulta"…
-
1
votes1
answer587
viewsJSF agenda with datatable containing data from different lists
I am making a software in JSF (2.2), primefaces and JPA with the Postgres bank. I need to make a schedule of accounts to pay with the following columns and their data: Column before yesterday with…
-
1
votes0
answers85
viewsDoubt menu of Primefaces
I changed the color (Hover) when I move the mouse over the menubar item, but the icons are also disappearing, when I move the mouse over the image. How do I make icon not disappear? /* Cor menu */…
-
1
votes1
answer352
viewsEclipse Error #{Component.Valid} "Valid cannot be resolved as a Member of Component"
Eclipse of Warning in #{Component.Valid} in Sryleclass, With Obs that imputText is inside a Composite Component. <div class="labelledInput"> <p:inputText id="txtPesqLot" ...…
-
1
votes2
answers1035
viewsConflict between Spring MVC and Primefaces
I have a problem to integrate Spring MVC with Primefaces. It seems that there is a conflict between them. You have the configuration in web.xml <servlet> <servlet-name>Faces…
-
1
votes1
answer654
viewsCommandbutton Primefaces does not call the method
Man commandbutton does not show error when clicked, but also does not execute the method. Commandbutton code: p:commandButton action="#{clienteMB.cliente.Salvar}" value="Incluir"/ Method code:…
-
1
votes0
answers539
viewsHow to create a JSF shopping cart with Hibernate Postgres Glassfich and primefaces?
I need to create a shopping cart like in a E-comerce but all on the same page, and I do not know where to start, I am new in programming I am with many doubts. In my design I use…
-
1
votes2
answers869
viewsException with Convert from a Primefaces selectOneMenu
I created a dynamic selectOneMenu that takes a Author Object List that implements Serializable. The code is as follows:: XHTML from selectOneMenu <p:selectOneMenu id="autor_selecionado"…
-
1
votes1
answer50
views<p:spinner> Does not accept double
Guys, good night. I’m using Primefaces 5.0 and I have a problem with the component . Every time I try to put a floating point value on it (25.43, for example) it changes only to the whole part of…
-
1
votes1
answer1978
viewsPage does not load Primefaces components
My page is not loading the Primefaces components, in this case a datatable. The end result is thus both in Chrome and in the Eclipse navigator itself: Just follow my code: listMarcas.xhtml…
-
1
votes2
answers402
viewsRedirect JSF error
I am trying to pass two parameters to another example page: <p:commandButton icon="ui-icon-pencil" action="form?faces-redirect=true&id=cargo.id"></p:commandButton> But this error…