Questions tagged [primefaces]

PrimeFaces is a JSF (Java Server Faces aka Jakarta Faces) component library that ships with a large set of rich components which utilizes jQuery under the covers as well as a few other select JavaScript libraries. It is a very mature library with an active development community.

PrimeFaces is a component library. It was one of the first which supports JSF 2.0 from top to bottom. It ships with a large set of components (over 100) and tools. Components utilize under the cover.

Online resources

Books

Related tag info pages

19281 questions
45
votes
1 answer

How do PrimeFaces Selectors as in update="@(.myClass)" work?

I don't understand how PrimeFaces selectors (PFS) work. I can use it. And I think it's a fantastic tool although it doesn't function always for…
John N
  • 844
  • 4
  • 12
  • 20
43
votes
4 answers

How to select JSF components using jQuery?

I am trying to implement jQuery with PrimeFaces and JSF components, but it's not working properly. When I tried to do the same with HTML tags it;s working properly. Here is the code with HTML tags which works properly with jQuery:
Karthikeyan
  • 757
  • 3
  • 11
  • 25
42
votes
10 answers

RichFaces Vs PrimeFaces (for performance)

I am using JSF 2.0 and I am looking for a copmponent library with minimal load in terms of performance. Which one is better to use if I have choice between RichFaces and PrimeFaces? What are the advantages and disadvantages of both?
Sanju
  • 3,187
  • 10
  • 41
  • 55
42
votes
2 answers

Defer loading and parsing of PrimeFaces JavaScript files

While analyzing the performance of a JSF 2.1 + PrimeFaces 4.0 webapp with Google PageSpeed, it recommends among others to defer parsing of JavaScript files. On a test page with a and a form with and which…
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
41
votes
8 answers

How to set width of a p:column in a p:dataTable in PrimeFaces 3.0?

I'm using PrimeFaces 3.0-M3 and I have a with two columns in it. I want the first column to be fixed at a width of 20px. The other column can use whatever space is left over. Here are screenshots of what I'm currently getting: The…
Jim Tough
  • 14,843
  • 23
  • 75
  • 96
40
votes
6 answers

PrimeFaces commandButton doesn't navigate or update

I'am using Primefaces to make my app a little bit more beautiful. I noticed that p:commandButton and h:commandButton don't work the same way. The p:commandButton calls the method and nothing else hapens. The h:commandButton calls the method and…
Sven
  • 6,288
  • 24
  • 74
  • 116
40
votes
1 answer

Mutually restricting begin and end date-times using p:calendar (no validation)

We have a requirement to present two p:calendar components to the user, representing a start and end date each. Both datetimes have dates, hours and minutes. PrimeFaces has perfect mindate, maxdate, minHour, maxHour, minMinute, and minMinute…
Kawu
  • 13,647
  • 34
  • 123
  • 195
38
votes
2 answers

Execution order of events when pressing PrimeFaces p:commandButton

I am trying to execute a JSF2 bean method and show a dialog box after completion of the method on click of PrimeFaces .
Abhay
  • 687
  • 4
  • 13
  • 22
38
votes
7 answers

Updating entire on complete of

I am having difficulty re-rendering a PrimeFaces Datatable once a cell has been edited. Changing the value in one cell may change entries in the other cells, hence the need to refresh the entire table. Here's the JSF page:
Franzl
  • 719
  • 1
  • 6
  • 13
37
votes
4 answers

How to let validation depend on the pressed button?

I have created form and I want to show previous existing items on a table while a new one is creating. I'd like to show matching items as form is filling up. But when I try to filter the list without having the form completed, the validation…
Roteke
  • 663
  • 2
  • 9
  • 12
37
votes
4 answers

selectOneMenu ajax events

I am using an editable primefaces selectOneMenu to display some values. If the user selects an item from the List a textarea should be updated. However, if the user types something in the selectOneMenu, the textarea should not be updated. I thought…
leostiw
  • 1,125
  • 3
  • 12
  • 28
37
votes
4 answers

DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled.

I'm trying to create a DataTable with Multiple Row Selection but i'm getting an error here's the link of the tutorial http://www.primefaces.org/showcase/ui/datatableRowSelectionMultiple.jsf : Here's my xhtml:
Amira
  • 3,184
  • 13
  • 60
  • 95
36
votes
3 answers

What does the PF function do in Primefaces?

On many places one can find usage of a function PF with Primefaces. For example in this answer From what I have seen so far it seems to be a magic "make it work a little better" function. But I don't believe in this kind of stuff so: What does this…
Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
35
votes
7 answers

JQuery Conflicts with Primefaces?

I have included JQuery1.5 in the header of a JSF page. In that page there is a bunch of Primefaces components already coded. After I have included the Jquery.js in the header of the page, some primefaces components like loses their…
Selvin
  • 12,333
  • 17
  • 59
  • 80
34
votes
5 answers

Email validation using regular expression in JSF 2 / PrimeFaces

I have an input field taking an email address: How can I validate the entered value as a valid email address using regex in JSF 2 / PrimeFaces?
Nidheesh
  • 4,390
  • 29
  • 87
  • 150