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
23
votes
11 answers

Strange styling through injected stylesheets in Chrome

We've just purchased a Primeface Theme&Layout Sentinel. However I've noticed a strange styling on tables in Chrome. The Table header and footer has an orange border. My colleagues don't see this and if I change my chrome profile I don't see it…
Ben
  • 1,922
  • 3
  • 23
  • 37
23
votes
2 answers

Jsf calling bean method from input text when pressing enter

JSF 2.0, Mojarra 2.0.1, PrimeFaces 3.4.1 Here is a p:inputText component which is expected to call a backing bean method when the enter key is pressed.
Ömer Faruk Almalı
  • 3,792
  • 6
  • 37
  • 63
23
votes
6 answers

Value Change listener not working in primefaces calendar

I am using primefaces 3.2 and JSF 2.0 My scenario is I have file date, last date and next date in my form. When user enters file date I need to update file date value in bean so it's value can be used as minimum date in last date of attribute…
mrugeshthaker
  • 657
  • 2
  • 8
  • 25
23
votes
3 answers

PrimeFaces icons

I cannot find a way to pick the arrow icons like the ones present in the PickList component, in order to use them in other CommandButtons. Well, I know that in order to use an icon in CommandButton, one has to follow these…
perissf
  • 15,979
  • 14
  • 80
  • 117
22
votes
5 answers

How to make a meta tag the first one in the section?

I'm using JSF2, GlassFish 3.1, PrimeFaces 2.x. I'm having strange rendering problems on IE9. I'm supposed to be able to force IE9 to render as IE9 by inserting the following:
user550738
22
votes
4 answers

Disable row selection for a few rows only in a p:dataTable

I would like to know if there is a way of disabling the radio-based row selection for a given set of rows in Primefaces, based on a bean property. Example: `
Redder
  • 1,398
  • 1
  • 11
  • 16
22
votes
4 answers

How to make an image button in JSF

I want to have a component that looks like a button, but instead of text it should contain an image. Because the standard button does not offer this functionality, I tried to use a :
bspoel
  • 1,567
  • 2
  • 13
  • 22
22
votes
12 answers

How do I conditionally render an ?

I would like to be able to conditionally omit a footer from a PrimeFaces panel element: #{message} I hoped that the rendered attribute would…
Matt Ball
  • 354,903
  • 100
  • 647
  • 710
22
votes
6 answers

How to write a custom converter for

How can I write a custom converter when working with PrimeFaces components that use a list of POJO? My particular problem is with
Thang Pham
  • 38,125
  • 75
  • 201
  • 285
22
votes
4 answers

java.lang.ClassCastException: com.sun.faces.facelets.compiler.UIInstructions cannot be cast to org.primefaces.model.menu.MenuElement

This morning I came in to my office and the first thing I saw: my company site crashed. Because of me I think. Now I tried for one hour and a half to fix this, but I found nothing and everybody looses their mind because the website doesn't work and…
user1713847
22
votes
5 answers

Set p:dataTable p:column width

I am trying to set the column widths of my data table. I have looked at this question for an answer How to set width of a p:column in a p:dataTable in PrimeFaces 3.0?. I am however trying to do something a little bit different. I only want the…
user489041
  • 27,916
  • 55
  • 135
  • 204
22
votes
3 answers

PrimeFaces disable validation on cancel button

In a form, I have some inputText with two commandButton, one to accept and one to cancel. How can I disable validation for the cancel button only?
Paolo Dragone
  • 939
  • 1
  • 11
  • 27
22
votes
8 answers

p:commandLink fails to open page in new window/tab

I'm trying to create a link to open a new page in a different window/tab and display some msg from backing bean but fail to do it, wonder know why? here is my xhtml file:
heng heng
  • 693
  • 3
  • 13
  • 25
22
votes
6 answers

java.lang.IllegalStateException: CDATA tags may not nest

I've got a problem with an ajax request in a JSF page. When I click on the button, I get this exception: SEVERE: Servlet.service() for servlet Faces Servlet threw exception java.lang.IllegalStateException: CDATA tags may not nest at…
alinoe
  • 221
  • 1
  • 2
  • 3
21
votes
6 answers

Trouble with Primefaces 3.0.M2 SelectOneMenu Ajax behavior

I am having trouble with implementing two SelectOneMenu controls, where data in the second one depends on the selection made in the first. This example on the primeFaces showcase is almost the same as what I want to implement:…
agileai
  • 211
  • 1
  • 2
  • 7