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
219
votes
5 answers

Understanding PrimeFaces process/update and JSF f:ajax execute/render attributes

What exactly are process and update in PrimeFaces p:commandXxx components and execute and render in f:ajax tag? Which works at the time of validation? What does update attribute do rather than updating value to component from back end? Do process…
Shardendu
  • 3,480
  • 5
  • 20
  • 28
156
votes
6 answers

How to find out client ID of component for ajax update/render? Cannot find component with expression "foo" referenced from "bar"

The following code is inspired from PrimeFaces DataGrid + DataTable Tutorials and put into a of a residing in a of a . Here is the inner part of the code (starting from p:tab component); the outer part is…
perissf
  • 15,979
  • 14
  • 80
  • 117
112
votes
11 answers

How to use PrimeFaces p:fileUpload? Listener method is never invoked or UploadedFile is null / throws an error / not usable

I'm trying to upload a file using PrimeFaces, but the fileUploadListener method isn't being invoked after the upload finishes. Here is the view:
Rodrigo Cavalcante
  • 1,577
  • 4
  • 14
  • 21
112
votes
5 answers

Can I update a JSF component from a JSF backing bean method?

Is there a way to have a JSF Backing bean cause an update of a component on the page? I am not looking to use an ajax component with update attribute to update a component on the page. I need to trigger an update from within a JSF backing bean…
BestPractices
  • 12,738
  • 29
  • 96
  • 140
72
votes
6 answers

Keep p:dialog open when a validation error occurs after submit

Minimal example dialog:
JOTN
  • 6,120
  • 2
  • 26
  • 31
69
votes
5 answers

How do I override default PrimeFaces CSS with custom styles?

I want to change the size of a PrimeFaces component. For example, a . It has a class called ui-orderlist-list which is defined in primefaces.css with a fixed 200x200 dimension. No matter what I do in my theme.css, it is overwritten by…
Samuel Tian
  • 797
  • 1
  • 6
  • 8
69
votes
3 answers

Using JSF as view technology of Spring MVC

I am currently implementing a small Spring MVC PoC, and I would like to use JSF as the view technology since most people in my company are used to a J2EE with Primefaces environment. Does Spring MVC 3 support JSF, or simply JSP? I have read multiple…
Astronaut
  • 6,691
  • 18
  • 61
  • 99
61
votes
16 answers

How to remove border from specific PrimeFaces p:panelGrid?

I have difficulty in removing border from a specific PrimeFaces . Some tags Some tags …
Eleeist
  • 6,891
  • 10
  • 50
  • 77
59
votes
7 answers

List of events

I've searched the Internet and I cannot find a list of events. Can anyone provide a complete list of events for the tag? I'm particularly interested if there is an onblur event or something similar.
Catfish
  • 18,876
  • 54
  • 209
  • 353
58
votes
1 answer

What does do and when should I use it?

I have been having trouble with the tag . I am working form other examples of code which use it, but I'm not sure exactly what purpose it serves. I have written some code which in method is exactly the same as other code I have seen which…
hello123
  • 951
  • 2
  • 15
  • 25
57
votes
4 answers

Display dynamic image from database or remote source with p:graphicImage and StreamedContent

I'm trying to display image bytes which is saved in database as a StreamedContent in the as follows: private StreamedContent content; // getter and…
minhltnt
  • 571
  • 1
  • 5
  • 4
55
votes
7 answers

Pass parameter to p:remoteCommand from JavaScript

I want to pass value to remoteCommand from javascript. If this is possible, how can I do that and how can I receive them in the backing bean?
Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294
48
votes
3 answers

How can I populate a text field using PrimeFaces AJAX after validation errors occur?

I have a form in a view which performs ajax partial processing for autocompletion and gmap localization. My backing bean instantiates an entity object "Address" and is to this object that the form's inputs are…
Erick Martinez
  • 805
  • 1
  • 9
  • 11
48
votes
6 answers

Calling a JavaScript function from managed bean

Is there a way to call (execute) a JavaScript function from managed bean in JSF? If that's relevant, I'm also using PrimeFaces.
Maddy
  • 3,726
  • 9
  • 41
  • 55
46
votes
6 answers

Session timeout and ViewExpiredException handling on JSF/PrimeFaces ajax request

I find this article to be useful for non-ajax request How to handle session expiration and ViewExpiredException in JSF 2? but I can't make use of this when I am submitting using an AJAX call. Suppose in a primefaces dialog, I am making a post…
Mark Estrada
  • 9,013
  • 37
  • 119
  • 186
1
2 3
99 100