How are we doing? Please help us improve Stack Overflow. Take our short survey

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
Filter by
Sorted by
Tagged with
0 votes
1 answer
647 views

JSF DataTable will not display values

I have a <p:dataTable> in in an xhtml page. The table will not display the values for the backing bean. I have debugged to the point that I know that the getter for the bean is getting called, ...
SkaiiNyght's user avatar
0 votes
0 answers
138 views

Dynamic JSF (2.0) and primefaces - set action with arguments

I'm trying to add JSF dynamically to my page. So far I can display: label's, textboxes, dropdown boxes, but no primefaces components. How can I add a primefaces component dynamically? If someone ...
Dimitri Dewaele's user avatar
0 votes
0 answers
407 views

p:commandButton not call ActionListener when using p:selectOneMenu

When I use p:commandbutton witout p:selectOneMenu my actionListener is called and ManagedBean works well. When I put p:selectOneMenu my actionListernet not call a function in ManagedBean. What could ...
gustavomr's user avatar
0 votes
0 answers
454 views

How to send a message to the next page in JSF2 using flashScope

I'm using JSF 2.0, primefaces 5 and JBoss AS 6 (at start it displays this message:"[JSFImplManagementDeployer] Initialized 3 JSF configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]") and I'm ...
user2572526's user avatar
  • 1,249
1 vote
0 answers
2k views

Set Default value in <p:autoComplete>

iam using primefaces autocomplete and it works fine but if iam setting default value it gives me an error. here is my Xhtml code: <p:autoComplete id="parametername" required="true" ...
user2983355's user avatar
0 votes
2 answers
2k views

Primefaces datatable cellEdit mode not getting modified new value

I've a data table with editMode="cell". My problem is when I edit a cell (in either one of the editable columns), submit it, go to the listener method, and try to obtain the modified value using: ...
mateuscpf's user avatar
0 votes
0 answers
240 views

java.io.NotSerializableException in OutputPanel - Primefaces

I'm using Glashfish 3 & Primefaces 3.5 Small update I tried the following but without any luck. Cleaned my application. Re-Built the project. Undeployed the app from Glassfish admin console. ...
Java_User's user avatar
  • 1,313
4 votes
1 answer
25k views

PrimeFaces commandButton actionListener not firing

I am having trouble getting my actionListener in a <p:commandButton> to fire inside of a dialog. I've tried changing it to action, removing the (), adding the (), changing the scope of the ...
SkaiiNyght's user avatar
0 votes
1 answer
1k views

Use ui:include to only include part of a page

I am creating a documentation page for my JSF web app and would like to include parts of the documentation as in a p:tooltip in the actual web page. Is there a way to only include certain divs in a ...
Nick's user avatar
  • 1,802
1 vote
0 answers
189 views

Why does ui:repeat make my application slow, and how can I fix it? [duplicate]

I have a primefaces wizard containing a ui:repeat, as follows: <p:wizard flowListener="#{reportWizard.onFlowProcess}" widgetVar="wiz" showStepStatus="false" showNavBar="false"> <p:tab id=...
BLuFeNiX's user avatar
  • 2,516
0 votes
1 answer
104 views

remoteCommand and inputMask don't work togheter

I tried to make a address validation, when I set a CEP the system goes to the managed bean, makes a request for a webservice and returns informations about the street, city and state (CEP is a kind of ...
Jaime Brolesi's user avatar
2 votes
3 answers
10k views

Jasper report Generation and downloading pdf in jsf primefaces

I am able to generate a jasper report in pdf format .I have a dialogue like shown below <p:dialog id="courseListDia" header="Student Profile" widgetVar="courseEdit" resizable="true" ...
SoulStreamer's user avatar
1 vote
1 answer
873 views

Primefaces 5 Delete button inside a datagrid with confirmation box Pass parameter value to the bean on click of yes of confirmation box

We are using Primefaces 5 We are having one datagrid for search results. Inside datagrid there is one delete button for every row. Onclick of delete button a confirmation box is being displayed when ...
Jerry's user avatar
  • 131
0 votes
1 answer
2k views

Primefaces SelectCheckboxMenu null value

I'm trying to get selected values from a selectCheckboxMenu, but all I'm getting is null in the console. It doesn't work with selectOneMenu too. Here's my jsf form: <h:form id="mmaster"> ...
Walid Saad's user avatar
0 votes
0 answers
917 views

How to allow users to upload any type of files except image file types in PrimeFaces

In this fileUpload, I need to make it to allow any type of files except image file types. However, it seems like my regular expression in allowTypes is not work. Do you guys have any idea how to do ...
user2503808's user avatar
3 votes
2 answers
12k views

Primefaces : update dialog content and keep it open

I'm working with JSF and PrimeFaces, and I can't handle the following situation: I have a dialog, and I placed a dataTable on it. In one of the cells of the table I would like to display given data in ...
bajla's user avatar
  • 163
1 vote
1 answer
5k views

Primefaces selectOneRadio(RadioButton) update panelGrid within Dialog

i m trying to update a panelgrid form selectOneRadio within a dialog. Every time i chose on of the two options the whole panelGrid collapse and a NPE is thorw without any details. My Sourcecode: <...
Khinsu's user avatar
  • 1,487
0 votes
0 answers
1k views

Show Primefaces Dialog box after checking condition in Javascript

I have a text box which gets the Book ID and deletes the record at button click. If the text box is left empty, it deletes all the records in the database. <h:inputText id="txtBookID" label="...
mythr's user avatar
  • 90
0 votes
2 answers
98 views

Update Value by AjaxListener

my problem is, that I got two fields. Here is the definition: <h:selectOneMenu id="selectSource" update=":relationTableForm:selectObject" value="#{tabDefineRelationTable.sourceId}" style="...
Björn's user avatar
  • 57
0 votes
2 answers
4k views

Play mp3 with button click with PRIMEFACES?

i want to play a media mp3 by clicking a button with primefaces, it is possible? i try to update the media tag but doesn't work, when the page load the sound plays great, but i want to sound again ...
MitoCode's user avatar
  • 329
1 vote
1 answer
1k views

Increase selectOneMenu options width automatically?

I need to allow my Dropdown SubMenu to increase it's width automatically when I save any data with really long names. The dropdown box adjust itself weirdly in respond to my current code. (Image shown ...
isg's user avatar
  • 39
0 votes
1 answer
2k views

Primefaces Autocomplete with barcode reader

I want to search an items with the name, code or barcode in a JSF/JPA/Primefaces application. I have used It works fine when using name or code. When we manually type the barcode it works fine as well....
Buddhika Ariyaratne's user avatar
0 votes
1 answer
3k views

JSF not rendered through web.xml <welcome-file> only

Using JSF 2.2 with Tomcat 7.0, trying to run my project on the server using web.xml, but my JSF is never rendered. When running my index.xhtml file through run as on tomcat, the jsf is displayed ...
antihero989's user avatar
0 votes
1 answer
2k views

<p:media display pdf from folder dynamically

I have several pdf files saved in ...WebContent/Manuals/filename.pdf that I am trying to display on my page. I am getting "Failed to Load PDF document" message in Chrome. My Jsf: <p:media value="#...
Stevenyc091's user avatar
0 votes
1 answer
441 views

Data Table Primefaces

I'm working with JSF Primefaces and I want to make a search and show results in but results won't show, I'm doing this with Result type and had implemented like this in JSF 2.1 whith MyFaces tomahawk,...
user2206592's user avatar
1 vote
1 answer
1k views

after editing a cell in datatableEditor the output text still display the old Value primefaces

I am using JSF 2.2 with PrimeFaces 5.0. I have a dataTable with cell-editing. I am having the dataTable inside dialog when I set editMode="cell", the outputtext after editing it's doesn't appear, but ...
Rhada Barik's user avatar
1 vote
0 answers
649 views

Spring Webflow with Primefaces

We have an application which is developed using Spring Webflow and there are some new requirements for which we are planning to use Primefaces because we have used it in other projects. This ...
user3340820's user avatar
1 vote
0 answers
213 views

Primefaces socket can't receive message from Primefaces push

In a JSF facelet, I define a p:socket component to receive the message returned from PushEndPoint. When the JSF facelet is displayed in a web browser, the p:socket component can receive the pushed ...
qiuzmjq's user avatar
  • 147
0 votes
2 answers
3k views

Fire event before closing p:dialog

I have a requirement where there is a h:form with some input components in a p:dialog. I want to show another confirmation dialog before user closes the p:dialog. How can I achieve ...
Kishor Prakash's user avatar
-1 votes
2 answers
2k views

java.lang.NullPointerException at serviceimpl

im new to this java. I facing a problem to load the data from database. I have create the service & dao & hibernate. But i facing the following problem. I have tried keep changing the code but ...
Jason Pang's user avatar
1 vote
2 answers
2k views

Primefaces datatable dynamic selection not working

In my application I need to decide selection mode dynamically either 'single' or 'multiple' for datatable (I'm using primefaces 5.0) and depends on that selection assigned. Below are the el ...
user3819593's user avatar
2 votes
3 answers
13k views

Primefaces menubar right align submenu

I've discovered I can play a commandbutton in the options facet (right side of menubar), however I can't seem to add a submenu in the same way. I want an actual menu dropdown aligned to the right, not ...
Shane's user avatar
  • 3,051
1 vote
2 answers
761 views

Internet Explorer 9 with primefaces and yaml

I have a project using primefaces 5 and yaml. When I tested it on local, everything worked fine. In my company we use IE9 and the newest Google Chrome. When I deployed the application on an ...
Maxi's user avatar
  • 435
0 votes
0 answers
1k views

jsf, primefaces, pass data from dialog to other bean

i need pass value from opened dialog to 'parent' bean, open new dialog from formBean @Named(value = FormBean.NAME) @SessionScoped //or @ViewScoped from omnifaces public class FormBean extends ...
nnn's user avatar
  • 23
0 votes
1 answer
3k views

How to fill a JSF/Primefaces DataTable from a ManagedBean?

I'm realizing my first application using JSF2 and Primefaces 5 . I want that when the user press a button my managed bean creates a new DataTable and fill it with some data. How can I do that from my ...
user2572526's user avatar
  • 1,249
0 votes
1 answer
3k views

Dynamic number of tables that scroll horizontally (Primefaces/JSF)

I have a dynamic number of 2-column tables that I would like to have display with a horizontal scrollbar without wrapping down vertically. I've tried many combinations of using ui:repeat and c:forEach,...
MikeBopf's user avatar
0 votes
2 answers
175 views

JSF-<table> tag does not apply the backgroundimage

My questions is similar to the question given here I am trying to add an background image to the <table> component which is inside an <p:panel> I tried lot of soluitons including the ...
Karthik's user avatar
  • 371
5 votes
1 answer
8k views

JSF PrimeFaces back button

Hi I use JSF and PrimeFaces and I'd like to make button called back which will do the same as back button in browser. Can someone tell a method how to achive this?
user3084292's user avatar
0 votes
0 answers
240 views

How to add hours and minutes to ajax request sent from p:calendar primefaces widget?

I am trying to use p:calendar widget with hours and minutes selector from primefaces framework. <p:calendar id="dateSel" pattern="dd.MM.yyyy HH:mm" converter="ruDateConv" showOtherMonths="true" ...
chabapok's user avatar
  • 930
0 votes
1 answer
363 views

edit p:datatable whth String ArrayList

i have this problem: if build a p:datatable from ArrayList it's impossible editing and sometimes rowSelectd not fire. my xhtml code: <h:form id="form"> <p:messages id="messageWiz" ...
omarbr's user avatar
  • 77
0 votes
0 answers
1k views

Add an ActionListener to a PrimeFaces MenuItem programatically

I'm trying to define an action listener programatically to a menuItem which is then used by a menu. Searched on internet for solutions to this, found some examples but there are some methods which ...
Rodrigo Martinez's user avatar
3 votes
1 answer
6k views

How to open a page in PrimeFaces lightbox, when a command button is clicked?

This example on PrimeFaces showcase demonstrates the usage of <p:lightBox> (iFrame). A page is opened, when an <h:outputLink> is clicked. I want the same, when a <p:commandButton> ...
Tiny's user avatar
  • 27.7k
4 votes
3 answers
5k views

How to make p:menu scrollable in primefaces?

I have a menu which I fill programmatically with a model. But I want it to become scrollable when its items become too many to be displayed in the page. Here is my menu: <p:menu overlay="true" ...
Sinda MOKADDEM's user avatar
0 votes
0 answers
938 views

Primefaces validate form using Ajax

I'm trying to validate a form on with Ajax set to true, here is my JSF code for the button: <p:commandButton value="doit" action="#{form.checkForm}" ajax="true" validateClient="true" update="...
Ouerghi Yassine's user avatar
0 votes
0 answers
352 views

javax.el.PropertyNotFoundException on value attribute of custom tag

I have defined a custom tag like below: <ui:composition> <h:panelGroup> <h:panelGrid columns="6" cellpadding="5"> <p:outputLabel for="#{id_prefix}#{fieldId}" ...
zardosht's user avatar
  • 3,252
0 votes
3 answers
1k views

Conditionally show image in JSF inside dataList

inside a iteration with primefaces dataList I want render an image conditionally like this: <ui:param name="curTriggerState" value="#{jobListController.getTriggerState(curJobTriggerInfo)}" /> &...
opfau's user avatar
  • 751
1 vote
1 answer
5k views

dataexporter primefaces not working

I am using PrimeFaces 5 and using dataexporter to export .xls and pdf file. When i click on export, nothing seems to be happening. Below is my code: <h:body> <h:form id="formReport"> ...
Hardik Agarwal's user avatar
0 votes
1 answer
763 views

"TypeError: $.browser is undefined" using Primefaces Scrollable TreeTable

I'm getting this strange error when I try to use a scrollable TreeTable (but it does not happen using a non-scrollable TreeTable) component. The component simply does not collapse or expand on click ...
Leo's user avatar
  • 6,520
0 votes
2 answers
114 views

limitation add node primefaces

i have this: public void addView(){ vi.setName_view("View"); System.out.println(selectedNode.getParent().getData()); TreeNode node0 = new DefaultTreeNode(new TreeNodeType()....
Hamdi Dousdou's user avatar
0 votes
0 answers
571 views

Load list of items of p:selectOneMenu when opening the dropdown?

I would like my p:selectOneMenu to reload items and show the options every time I click it to open the dropdown. Has anyone tried it? If so, how do?
Vinícius França's user avatar

1
206 207
208
209 210
387