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

Change the color of primefaces Scheduler Event

I am using primefaces(3.0) scheduler component. http://www.primefaces.org/showcase-labs/ui/schedule.jsf As we can see here there there are some events created with color blue. Now I want to change the color of these events, on the basis of …
Java
  • 2,451
  • 10
  • 48
  • 85
4
votes
2 answers

PrimeFaces p:fileUpload multiple files autoComplete only works after first file

I try to upload some files then redirect to another page by oncomplete the problem is that oncomplete is only working just after the first file is uploaded
Mohamed AbdElRazek
  • 1,654
  • 14
  • 17
4
votes
3 answers

JSF h:button or Primefaces p:button - target _blank

How can I set _blank as target of a h:button or p:button? Right now I have a simple link: But I wanted it to look like a button (a primefaces styled…
userk
  • 169
  • 2
  • 3
  • 9
4
votes
1 answer

file upload within a wizard in primefaces - uploaded file does not showing up?

I use the Primefaces manual example for a wizard, and replace one of the tabs by a simple file upload form. I have all the necessary libraries and filter in web-inf for the file upload to work. Running the project with Netbeans does not show any…
seinecle
  • 10,118
  • 14
  • 61
  • 120
4
votes
1 answer

Primefaces ajax row selection fail to update values in dialog

I have a data table that will display a detail dialog on row select event. However, the dialog does not show any values of the selected object. I can see that the selected object is properly set during debug session. The table consists of rows of…
Random Joe
  • 640
  • 4
  • 10
  • 25
4
votes
1 answer

JSF ViewScoped variable not surviving redirect to same page

With the code below, i'm using a listener on the selectOneRadio to redirect to the page with a query string in the url. The problem is, when i get redirected, the value of newsTitle and selectedNews are null. Why is this? Is is because i'm doing a…
Catfish
  • 18,876
  • 54
  • 209
  • 353
4
votes
1 answer

Email patterns with primefaces

I think my problem is simple enough, but I can't seem to overcome it. I'm using an input text for emails like this:
nouraty
  • 156
  • 1
  • 14
4
votes
4 answers

How to count the number of rows in a HTML table?

I can't seem to find this anywhere. I have a dataTable like this one, and I want to be able to count the number of rows in the dataTable in javascript. how would that be accomplished? thanks! I need it in javascript because I want to iterate through…
Myy
  • 18,107
  • 11
  • 37
  • 57
4
votes
1 answer

How to process only the primefaces dialog in commandButton action?

My problem is. I have a primefaces dialog (modal window). Inside it has a commandbutton. When i open the dialog and click in commandbutton, then the inputs outside and behind dialog are validated too. I want process only the inputs inside…
4
votes
1 answer

JSF selectOneButton with ajax update - setter 2 times invoked

I use Primefaces 3.2 with ApacheMyfaces on WebSphere Application Server 8. I have a selectOneButton with an ajax update inside. When I switch the button, my setter firsts sets the value (int) to 0 and then to the value which is…
veote
  • 1,400
  • 9
  • 33
  • 62
4
votes
1 answer

Get widgetVar with JavaScript or check/uncheck all other PrimeFaces checkboxes

I have several PrimeFaces checkboxes on a page. If you click the master checkbox, all other checkboxes should be checked/unchecked. With plain HTML checkboxes this would be an easy issue. But because PrimeFaces does not show the checkbox itself, but…
Joel
  • 15,496
  • 7
  • 52
  • 40
4
votes
2 answers

Error Message Style For a Panel

I am using PrimeFaces, which in turn uses JQuery UI for not only the functionality but its CSS styling framework. This question arises from my ignorance about the CSS framework, and I have been unable to find any examples or documentation to guide…
AlanObject
  • 9,613
  • 19
  • 86
  • 142
4
votes
1 answer

Couldn't access FacesContext.getCurrentInstance() from Self Spawned Thread

Couldn't get "FacesContext.getCurrentInstance()" in self spawned thread. Required to update the components dynamically based on a back-end process. Achieved the same by creating a thread for monitor the process and call back the component updation…
Jeyan
  • 729
  • 1
  • 14
  • 27
4
votes
1 answer

Internal stylesheet not working in IE9 with jsf

I am using jsf2.0 with primefaces.My application was working fine with all browsers includes IE8... but when i run my application in IE9 my internal stylesheet not even taken by browser(IE9).. The styles are broken. my css on head:
sathesh
  • 120
  • 1
  • 4
  • 11
4
votes
3 answers

Primefaces calendar allows invalid date

I am using primefaces calendar but i am allowed to enter invalid date.For e.g. enter date as 32-06-2012 in the input box for date field and save the record. It is saving the date as is saving the date as 02-07-2012. Same behavior can be observed in…
Tarun Madaan
  • 401
  • 1
  • 8
  • 20