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
3
votes
2 answers

What is PrimeFaces p:editor based on?

I want to add some client-side functionality to the PrimeFaces p:editor, but for some reason I am not able to uncover what JavaScript client side code they used to build the component. Could anyone point me to that? P.S. two things I want to do is…
AlanObject
  • 9,613
  • 19
  • 86
  • 142
3
votes
2 answers

How to implement a navigation button in JSF 2.0 that doesnt do any validations of anything on the current page?

I want to implement a navigation button that takes the user to another page. I have no desire or need for any validations to run nor for the model to be updated, etc. I have implemented this as an ajaxified client-side redirect (note, I am using…
BestPractices
  • 12,738
  • 29
  • 96
  • 140
3
votes
2 answers

Enums as dropdown list in Primefaces

I am also trying the same to get the City codes which are defined in the enum "CityCodes.java" which is my enum class where I have the definition as below: public enum Cities { AL("Alabama","1"), AK("Alaska","2"), …
mainhoonnaa
  • 45
  • 1
  • 2
  • 5
3
votes
5 answers

Is there a java command that can close a primefaces overlay panel?

Is there a java command that can close a primefaces overlay panel? Or is there a way to make a button inside of an overlay panel close the panel when the button is clicked?
Landister
  • 2,194
  • 7
  • 38
  • 56
3
votes
1 answer

javax.el.MethodNotFoundException: Method not found: TableBeanDetail@bd4053.onRowSelect()

I am getting the following error when I click the commandbutton in the datatable which appears in each row. By looking at the example I understand that once commandbutton is clicked, the follwoing code first gets executed …
Peter
  • 131
  • 1
  • 14
3
votes
1 answer

Setting bean property before opening Primefaces dialog

I would like to achieve this functionality. I think is pretty clear what I am…
Petr Mensik
  • 26,874
  • 17
  • 90
  • 115
3
votes
1 answer

Phase listener to listen only if not a postback

Basically, I need to call a method after RENDER_RESPONSE phase. I tried this: The above listener is listenening all the time even for ajax calls. I tried rendered="#{!facesContext.postback}"…
Ravi Kadaboina
  • 8,494
  • 3
  • 30
  • 42
3
votes
2 answers

PrimeFaces-- use MyFaces or Mojarra?

It's unclear whether I should use MyFaces or Mojarra as the JSF 2.0 implementaton with PrimeFaces. Does PrimeFaces have less issues with one or the other?
BestPractices
  • 12,738
  • 29
  • 96
  • 140
3
votes
3 answers

Enabling disabling checkboxes in a datatable

Is there a way in Primefaces to enable or disable a checkbox in a datatable? Right now my datatable is like this:
lamostreta
  • 2,359
  • 7
  • 44
  • 61
3
votes
1 answer

get row number in primefaces datatable by clicking button in row

how can I get row number in Primefaces (2.2) DataTable by clicking button in some row? I need pass this number to javascript code with prompt() function. 1 solution using WidgetVar.selection but in this case I use manually row selection and then…
MaximG
  • 141
  • 2
  • 3
  • 12
3
votes
2 answers

Disable JSF Primefaces textArea on event

I have a simple form with selectOneMenu and textarea that I want to disable if certain value is chosen in the select (onchange event). How can I achieve this?
Erveron
  • 1,908
  • 2
  • 25
  • 48
3
votes
1 answer

How to use Primefaces autocomplete with a POJO List and a POJO's property as selection value

In our current project we want to replace a with Primefaces's . The select items are a list of Pojos (JPA Entities). The difference to the given examples in primefaces showcases is, that we want the primary key…
fischermatte
  • 3,327
  • 4
  • 42
  • 52
3
votes
1 answer

Primefaces Panels inside OrderList

I'd like to implement reordering of list elements using p:orderList and p:panel components. Initially there was a POJOs in list, but problem occurs even with a list of strings. There is my bean: public class BackingBean { private List
nikagra
  • 835
  • 2
  • 9
  • 23
3
votes
2 answers

How to override Primefaces jQuery and css

I am using PrimeFaces. As PrimeFaces uses its own jQuery, jqueryUI, jQuery-UI.css. I am using ui:composition. What i did i included a line in my template page like this layout.xhtml
Basit
  • 8,426
  • 46
  • 116
  • 196
3
votes
1 answer

Primefaces 3.0 file upload does not call fileUploadListner

I am trying to fileupload component of Primefaces 3.0 based on the example given in the demo. I have also added commons-fileupload-1.2.2.jar and commons-io-2.0.1.jar along with primefaces-3.1.jar file in my application which is being deployed on…
user1250720
  • 363
  • 1
  • 5
  • 17