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
27
votes
4 answers

Remove all styling from Primefaces components?

Is it possible to remove all styling from Primefaces components? I mean, the component set is good but having to manually override every tiny bit of each component to make the component style fit the overall design of my application isn't good. I…
LuckyLuke
  • 47,771
  • 85
  • 270
  • 434
26
votes
5 answers

Convert timestamp long to normal date format

In my web app, date & time of a user's certain activity is stored(in database) as a timestamp Long which on being displayed back to user needs to be converted into normal date/time format. (Actually my database Cassandra stores the timestamp of…
Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294
26
votes
1 answer

How to place markers on google map

I use the google map tool from primefaces. I want my user to be able to place just one marker on a map. The values of the coordinates should be stored in a managed bean variables. How can I do that? See what I did so far: I created the map: …
javing
  • 12,307
  • 35
  • 138
  • 211
26
votes
2 answers

Primefaces's dialog 'appendTo' property, what it useful for?

Maybe it's a dumb question, but in Primefaces's there's property which called appendTo which described in manual as: Appends the dialog to the element defined by the given search expression. I can't realize what it useful for?
Anatoly
  • 5,056
  • 9
  • 62
  • 136
25
votes
4 answers

primefaces keyup or other ajax event delay

I have something like: But I don't want to do an Ajax request on every keypress, I would like to do the request a half second after…
Roteke
  • 663
  • 2
  • 9
  • 12
25
votes
4 answers

How to avoid repeatedly click a button in a form?

My code:
leo173
  • 303
  • 2
  • 5
  • 13
25
votes
4 answers

Difference between ".class" and ".class, .class .class"?

The following excerpt from the PrimeFaces documentation makes it seem as there is a difference between the two selectors described in the title: .ui-widget, .ui-widget .ui-widget { font-size: 90% !important; } Can someone explain the…
kjosh
  • 587
  • 4
  • 11
25
votes
4 answers

How to query data for Primefaces dataTable using lazy loading and pagination

In my JSF's datatable I have implemented lazy loading and when I paginate through records it is taking time about 4 or 5 seconds to execute next set of records, actually it should be take less than a second to execute the results. This has happened…
Jacob
  • 14,463
  • 65
  • 207
  • 320
25
votes
1 answer

How to exclude child component in ajax update of a parent component?

I am using PrimeFaces tag in my code. How we can exclude a child component from getting updated in an ajax call that update a parent component?
Pranjali
  • 535
  • 1
  • 8
  • 19
24
votes
3 answers

How to align PanelGrid to center? JSF-Primefaces

I know that there are many questions about this issue, but nothing worked for me properly. I need to align my PanelGrid to center(horizontal). this is my panelgrid and my CSS: .panelGridCenter…
Johnny2012
  • 1,512
  • 8
  • 31
  • 46
24
votes
2 answers

How to change default p:dataTable emptyMessage message

I am using PrimeFaces' dataTable. I get "No records found." when table has no element. I want to change this message to something like "No result" and make this message i18n type. I don't want to use
ahmet
  • 1,085
  • 2
  • 16
  • 32
24
votes
6 answers

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

I was trying to implement one DataTable Editable with RowSelection enabled. But it is throwing out an exception: DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled. I implemented the DataModel in both the…
user1281029
  • 1,513
  • 8
  • 22
  • 32
23
votes
1 answer

How to get rid of WARNING: PWC4011: Unable to set request character encoding to UTF-8

This is on GlassFish 3.1, using PrimeFaces over Mojarra and salted with MyFaces CODI. On just about every request the following message appears: WARNING: PWC4011: Unable to set request character encoding to UTF-8 from context /com.myapp_war_0.1,…
AlanObject
  • 9,613
  • 19
  • 86
  • 142