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
answer1470
viewsCentralize components of a datatable that is in data editing in Primefaces
How can I center the components of this datatable. When I click to edit the data of the same I realize that the components of data entry are not centralized, but when using a certain tests with css…
-
0
votes1
answer2589
viewsHow to open a dialog by passing an object as a parameter in the primefaces?
Good night. I’m having trouble opening a dialog by passing an object as parameter. Someone knows how to fix this?
-
0
votes1
answer757
viewsChange the active tab on a p:tabview
How to change the tab active in a component p:tabview from a p:commandButton? Any idea?
-
0
votes1
answer593
viewsUsing data table with on demand feature within a dialog in primefaces
I’m having trouble using a datatable of primefaces with that resource on demand. I try to use it inside a dialog but when opening with the data, but they are not updated and the scroll mouse moves…
primefacesasked 10 years, 4 months ago Macario1983 1,335 -
0
votes2
answers1761
viewsDatabase image displayed in primefaces does not appear
I am implementing a page where I need to display a datagrid with the values of a table in the database. Each table row has a blob image. But when trying to display the image with the primefaces by…
-
0
votes1
answer231
viewsHow to make the header color of Panelgrid Dynamic in Primefaces?
I need to streamline the display color of the Panelgrid headband present in Primefaces 5.1
primefacesasked 10 years ago Marcos Lisboa 1 -
0
votes1
answer212
viewsProblem with "match" attribute of a text field
I’m using the attribute match of a <p:password/>, but it doesn’t work properly. <p:password id="senha"/> <p:password match="senha"/> When I send the form via commandButton, an…
-
0
votes1
answer815
viewsReturning null when trying to display an image in p:graphicImage of Primefaces
I have an error trying to show a photo in the component graphicImage of the Primefaces. The photo can be in Base64 or Bytes. I’m using Primefaces 5.0 and JSF 2.2. .xhtml <p:dataTable…
-
0
votes0
answers512
viewsCould not find backup for Factory javax.faces.context.Facescontextfactory
I am creating a project using Spring Boot + Primefaces but when trying to access the page I get the following error: Whitelabel Error Page This application has no Explicit Mapping for /error, so you…
-
0
votes0
answers88
viewsInserting records into the database only after the insertion into a List
I do not know if I was very specific in the title, but I will try to be more in the description. I have in my database a table of Disciplines that contains: id name workload I would like these…
-
0
votes1
answer778
viewsDynamic update in Primefaces component via autocomplete
A simple question, is there any easy way to use the autocomplete component of the first faces, and so when selecting some option make a component (for example a dataScroller) be updated??? I tried…
-
0
votes0
answers142
viewsLocking system after image upload
People in my system, I upload a certain image, the image is saved in a directory and then saved the product in the bank, until then certain td, the problem is that after saving the product the…
-
0
votes0
answers106
viewsPrimefaces 5.0 skinSimple attribute does not appear
I’m trying to use the fileUpload component of primefaces and for what I want, the attribute "skinSimple" is not appearing, as I saw demonstrated in the showcase. I even try to put the attribute…
primefacesasked 9 years, 8 months ago cassioliveira 16 -
0
votes2
answers76
viewsStrange page after adding Primefaces
After adding Primefaces dependencies the project ignores my page /home.xhtml that is in xml and shows a url /javax.faces.resource/theme.css.xhtml?ln=primefaces-aristo every time I run the project.…
-
0
votes2
answers2691
viewsDisplay an image that is outside the JSF project
Hello I have a screen that uploads a file and saves in a folder in a directory of the computer until and saved in the database the complete path of the image, now I want to display this image in a…
-
0
votes0
answers85
viewsProblem using "Frozen Columns" in Primefaces
I’m using the first faces with frozenColumns, in this way: <p:dataTable id="dataTable" var=.... scrollable="true" scrollWidth="800" frozenColumns="1"> Only when it breaks the line, the Frozen…
-
0
votes0
answers213
viewsMethod with Fileuploadevent from Managedbean not found: javax.el.Methodnotfoundexception
This is the error presented: ADVERTÊNCIA: Method not found: [email protected]() javax.el.MethodNotFoundException: Method not found:…
-
0
votes1
answer163
viewsDo not display another row in the table when status equals "Canceled"
I have a <p:dataTable> which is populated by data that is in a file .xml and I have in front of each line a button to finish or cancel the process. How do I not display more in my DataTable…
-
0
votes1
answer19
viewsCompote ready
Good morning. People, can anyone tell me if there is any other component besides the editor of the primefaces, in which it has the following properties: font, font size, center, left align, right…
-
0
votes1
answer69
viewsNot from Submit with only 1 click in form if the focus is on a p:ajax field
I’m not getting the Submit in the form with just one click. When I click "Ok" the field loses the Focus and processes the ajax. Then I have to click again to send. ... <p:outputLabel…
-
0
votes2
answers986
viewsDialog some after opening
I’m using a dialog of the first faces: <h:form> <p:dialog widgetVar="dialog" modal="true" resizable="false"> <p:outputLabel value="Mensagem qualquer."/> <p:commandButton…
-
0
votes1
answer701
viewsHow to pass data between pages?
I’m trying to pass some values between pages using Managedbeans, but it’s not working: @ManagedBean @SessionScoped public class Chute { private Boolean chutar; //getters e setters... } On the first…
-
0
votes1
answer1051
viewsTarget Unreachable, Identifier resolved to null
When I try to open the page, I get: javax.el.PropertyNotFoundException: pagina.xhtml @3,54 value="#{meuManagedBean.valores}": Target Unreachable, identifier 'meuManagedBean' resolved to null…
-
0
votes2
answers294
viewsError in update selectOneRadio
I am trying to update the value field and percentage of the page under development. When I put in ajax the option:update=":formDlgSolicitacao:idPercentual :formDlgSolicitacao:idValor" it does not…
-
0
votes1
answer630
viewsHow to start a certain tabindex tab (primefaces)?
How do I display one on a particular tab? I tried to use the tabIndex="#{meuBean.tabIndex}"setando for 0,1,2 and etc, but when opening it always positions in the first tab.
-
0
votes1
answer332
viewsHow to include a field in the First Faces dataset that does not exist in the datatable?
How to include a field in the dataPath (Primefaces) that is not in the datatable? I am generating an Excel file from a datatable with dataExporter, but I need to include a column that does not exist…
-
0
votes2
answers1870
viewsDialog does not open
When I click the new button should open a dialog window but does not open and gives this error in the console: widget for var 'test' not available What can it be ? <ui:define name="menu">…
primefacesasked 9 years, 10 months ago Demetrius Fernandes 79 -
0
votes0
answers33
viewsRestricting the selection of lines
Guys, I’m having a problem selecting lines in one datatable that I created here. It allows me to select the first two lines, however, the others it does not let. It does not even the effect of the…
-
0
votes3
answers2125
viewsOverride CSS Component Primefaces
I’m using the component calendar of Primefaces, but I’m having a hard time overwriting CSS of the same. Follow my code on xhtml: <h:panelGrid columns="2" columnClasses="col one, col one">…
-
0
votes2
answers915
viewsdatatable primeFaces shows the number of correct records but does not show the fields
I have a problem I can’t solve if you can help me thank you. In short, it’s a prototype invoice registration with notafiscal items, I can enter the records through a dialog, the table shows that the…
-
0
votes0
answers44
viewsProblems with ireport
I’m trying to generate a simple report, with three filters: start date, end date and reservoir. The problem is that when you click the button to generate the report nothing happens, and I do not…
-
0
votes0
answers366
viewsViewexpiredexception in view periodically updated
Good morning. I am with a periodically updated view which throws the following exception: Nov 03, 2015 11:21:49 AM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError GRAVE:…
-
0
votes1
answer859
viewsHow to render a jsf component through the bean?
I need to render a jsf component (Primefaces) through the Bean. I have a selectOneMenu that changes the type of person (physical/legal) and I need to render the field "CPF", because I use the same…
-
0
votes1
answer448
viewspdf download that is outside the java jsf application
need to download some pdf that are outside of my application, are in the folder c: tmp\ how could I use primefaces to make these files available for download? I thought of saving in folder C:…
-
0
votes1
answer1315
viewsLine break in <p:confirm> Primefaces message
I am unable to implement the break line in the following code: <p:confirm icon="ui-icon-alert" header="Confirma a alteração do Status" message="Tem certeza que deseja alterar a Situação do…
-
0
votes0
answers151
viewsHow to add new columns in h:datatable in jsf without refreshing what update does in the table,
Guys, I have a problem, I created a paginated query that always brings 5 records, implemented with jquery one $(window). scroll so that whenever the scroll arrives at the bottom of the page it…
-
0
votes2
answers1445
viewsCalling JQUERY function with Primefaces
I want to run a Jquery call after the click of a button: <p:commandButton id="btnSelecionaLote" icon="ui-icon-pencil" action="#{loteController.selecionarLote()}">…
-
0
votes2
answers1896
viewsHow to get the description of an Enum in xhtml?
I need help to resolve a situation with an Enum class along with the Dampelle framework. Ex.: I have this class: but I would like the descriptive Ex.: Ordinary Law to appear in my combobox, and not…
-
0
votes1
answer51
viewsTable rows aligned to the right
I want the rows of my table to be aligned to the right and the title of the centered column, can anyone help? The code is like this: <p:column sortBy="totalApontado"> <f:facet…
-
0
votes0
answers202
viewsRTSP protocol with primefaces?
I am trying to implement with primefaces to accept the RTSP protocol: <p:media value="rtsp://myUrl" width="190" height="250"> <f:param name="autoPlay" value="false" /> </p:media>…
-
0
votes1
answer330
viewsDo not write to the database and the console appears as recorded
I have a form inside the modal to record registration, when I insert the data it is as if it were recorded in the Eclipse console, but the same does not happen in the database Message on console as…
-
0
votes2
answers4580
viewsPrimefaces JSF - <p:commandButton that serves the update and oncomplete
I am trying to make an orderList and I am having trouble configuring the attributes in the tag commandButton update and oncomplete. I also don’t know what their function is, but I know it doesn’t…
-
0
votes1
answer896
viewsProblems loading datatable Primefaces
I am using in the Java Web CDI, JPA and Maven application, my application is already entering records in the database without any problem, now what I have left is list the records in the Primefaces…
-
0
votes1
answer77
viewsMany lines in a csv file
The scenario of my doubt is the following: I have a system that reads a file that has around 3 million lines, each line has a separator, I identify each item on the line, I do the proper treatment…
-
0
votes1
answer219
viewsHow to simulate p:commandLink click effect?
On the buttons on the primefaces there is an effect, the user sees it being clicked (sink), the same does not occur when I click on commandLink: <p:commandLink id="logs" immediate="true"…
-
0
votes1
answer3999
viewsCalling xhtml page by commandButton
I am implementing the Toolbar component of the first faces and within this component there are several commandButtons that I need when clicking it to call another xhtml page of my project. How do…
-
0
votes1
answer70
viewsError trying to save register in bank
After filling the form and clicking Save, the error below occurs: mai 20, 2016 7:14:52 PM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError GRAVE:…
-
0
votes1
answer731
viewsCapture the change event in a p:selectOneenum type
I cannot capture the change event of the p:selectOneMenu component, whose upload source is an Enum. I registered in my view the Ajax change event, however the Listener method is not called. My view…
-
0
votes1
answer68
viewsTree Selection Primefaces
I want to make a resource in the application that lists the folders and files of a directory, so I thought about Tree Selection of Primefaces, but I want to expand Tree Selection at the level of the…
-
0
votes1
answer39
viewsAddition to an autocomplete
I have an autocomplete with the code below. <p:outputLabel styleClass="rotulos" value="Fornecedor:" /> <p:autoComplete id="inputfornecedor" update="msgcontapagar"…