Questions tagged [primefaces]

1

votes
2

answer
28

Views

Then Inputtext lost mask when Edit information, what´s wrong?

I need show the mask in InputText field after click in hiperlink for Edit information in my FORM. When I access the form in first time the inputext fields show me the masks correctly. Follow my code: CPF $('#inputcpf').mask('999.999.999-99'); And the EDIT part of code: After clicking on the link the...
Mauricio Sanches
1

votes
1

answer
163

Views

Primefaces RequestContext under 7.0

My pre-7.0 Primefaces application has this code: RequestContext.getCurrentInstance().execute('window.open('myUrl');'); I understand that RequestContext is no longer available in 7.0. What is the equivalent to perform the same action?
Tom T
1

votes
1

answer
35

Views

How to add datalabels to chartJS on Primefaces

I'm creating charts with the new ChartJS lib on Primefaces, but I could not find a way to add the value as label on the bar chart or line chart. Looking on the internet, I've found a JS plugin called chartjs-plugin-datalabels! that does what I need. How could I use this plugin on my Java Primefaces...
Renan Ceratto
-1

votes
0

answer
89

Views

Selectonemenu value is not set inside datatable inside dialog

Removed my commentary and added screenshots instead. Problem statement - selectOneMenu value is never displayed in edit dialog. My Listing page - I click on Create button and land on next page - Now, I click on + icon on child2 parent node and filled all values on add dialog - I saved the dialog d...
Tirath
0

votes
0

answer
4

Views

Default CSS of theme not applying in JSF application

I am new to JSF and Primefaces. I’m trying to use a theme in my project. When adding h:form tag, css style not working! But after removing jsf and primefaces tags(h:form, p:commandlink , ...), every thing is OK! And css is applied correctly to my menu. XHTML code: ... main_menu devices … Can any...
Omid
1

votes
1

answer
609

Views

Primefaces autocomplete multiple with forceSelection false

I'm using Primefaces 6.0, in which doesn't work with multiple=true and forceSelection=false. You can find the component below:
Michel Foucault
1

votes
1

answer
108

Views

JSF, Primefaces LazyDataModel - update row without invoking load method

I have a simple lazy data model with 2 columns. The second column has only checkboxes which are disabled by default (cannot click them). On row select I want only enable the checkbox (checkbox.disabled = false) without invoking load method - because my data is not changed so there is no need to requ...
minizibi
1

votes
1

answer
48

Views

PrimeFaces 7.0 getCallbackParams() not found

I just upgraded from PrimeFaces 6.2 to 7.0 and I'm unable to find getCallbackParams(). In PrimeFaces 6.2 it wasn't deprecated nor there was an hint of it being moved in further releases. Some of the RequestContext functions were moved to PrimeFaces.current().ajax() (like addCallbackParam()) but it w...
Paolo Forgia
1

votes
0

answer
285

Views

How to use OmniFaces @Eager annotation with PrimeFaces?

PrimeFaces and OmniFaces can be used together in a JSF project. My project is using PrimeFaces 6.1 and works fine. However simply declaring the Maven dependency for OmniFaces org.omnifaces omnifaces 2.6.7 doesn't cause the @Eager annotation an application scoped bean injected with @Named to have any...
Karl Richter
1

votes
0

answer
66

Views

How to filter on primefaces?

I'm using a modal window to select a value. After i make a selection and open the modal window again. I want the modal list be filtered on the selectedValue. It goes back to the front page. and if open modal again and select 'ABC', it should look like this: this is look up and which list should be...
zachandcode
1

votes
0

answer
22

Views

p:datatable initial message

I have a datatable and before any search has been done, the inital message is 'no records found' where as I want the initial message to be 'No search criteria has been provided'. I used the emptyMessage to change it however this also changes it if no records are returned. E.g. a search returns 0 re...
MKen
1

votes
0

answer
333

Views

primefaces ui-g dynamic height

I'm using Grid CSS of primefaces. I have two columns with one row at left and two rows at right. I'm trying to give the height of my left row to my right rows. This is my test code : TEST1 TEST3 TEST4 In my result, I still see red background. I need to have a green background which replace the red b...
Paladice
1

votes
0

answer
150

Views

ajax update row while using the rowStyleClass of p:datatable

i have a p:datatable of 30 sets of rows with each row can have different colors(rowStyleClass) based on the values chose in one of the column with ajax update table. however, this give me problem with unsaved values in other columns of input text where everytime i change the value ajax, the table ge...
user3160432
1

votes
0

answer
27

Views

dataTable primefaces empty even the data

i m new in primefaces can you help me plase i want to fill a dataTable primefaces by data from mysql database table name is products i got the bean Product as below : package ma.supmti.jsf.model; import java.util.Date; public class Product { private Integer id; private String name; private Integer p...
Ouafae
1

votes
1

answer
434

Views

PrimeFaces Drag & Drop not working if other portlets contain <form> tags

If I have a Liferay page which includes a Liferay Web Content Display with a form tag and then a PrimeFaces portlet with p:droppable and p:draggable, the Drag & Drop functionality does not work. My XHTML: My Bean: import java.io.Serializable; import java.util.ArrayList; import java.util.List; import...
Tahir Umar
1

votes
0

answer
118

Views

Programmatically add an AjaxBehavior to a CommandLink with primefaces

Based on the solution proposed in the following link How to programmatically add an AjaxBehavior to a UIComponent with primefaces I have implemented a CommanLink programmatically. The actionListener method openDialogListener is called, but the openDialog from the primefaces dialog framework doesn't...
Zardo
1

votes
0

answer
486

Views

javax.enterprise.resource.webcontainer.jsf.context java.lang.NoClassDefFoundError

I am working on a JSF project using PrimeFaces 6.0 and WildFly 8.2. Occasionally I recieve the following error: 03:58:59,238 SEVERE [javax.enterprise.resource.webcontainer.jsf.context] (default task-14) java.lang.NoClassDefFoundError: at/bibliothek/web/NewCustomerBean$1 at at.bibliothek.web.NewCusto...
Alex Mi
1

votes
0

answer
468

Views

primefaces p:inputSwitch not work in dialog while use update the dialog

I am doing a on-off with p:inputSwitch, it's in a dialog. When an ajax call inside a form happens in combination with an update on the inputSwitch, the inputSwitch behaves strange and always resets its state. Here is a simple reproducible example (without the need of a backing bean): Interesting obs...
西门吹雪
1

votes
0

answer
166

Views

Primefaces selectCheckboxMenu delay on rendering huge data set

I'm facing a problem which I couldn't solve with google. We want to display articles in a . Sometimes it can happen, that there are around 50'000 articles in the dropdown. In such a case the dropdown takes sometimes more than 30 seconds to collaps and display the items. Is there any chance to solve...
TheNewby
1

votes
1

answer
40

Views

Passed Value after Filtering is 0 - Primefaces

I'm using currently Primefaces 6.1 and i got following Datatable: So the filtering just works fine, it shows me the right result. But if i use the commandButton after filtering, the passed value I get is always 0. To clarify i got my Bean already ViewScoped and Serialized and my Button sets an Value...
Thomas Stachl
1

votes
1

answer
723

Views

Primefaces 6: disable button Upload with fileUpload component with mode simple

I'm using Primefaces 6 and I create a fileUpload component as below: I must use mode=simple so ajax is false. I add then a button to manage the upload: This button is loaded with disable=true to startup. Can I set disable=false for this button when user click on Choose button in the fileUpload compo...
Diaboliko
1

votes
0

answer
201

Views

PrimeFaces push endpoint(s) on Apache: AH01144: No protocol handler was valid for the URL

I have been successfully using atmosphere 2.4.2 with PrimeFaces 5.3 on Tomcat8 and Apache Lounge (Windows) 2.4.27 server upfront. Push is working fine, however, I just keep on receiving following info logger in Apache logs on almost every page refresh: [Tue Jan 30 07:15:04.457748 2018] [proxy:warn]...
Parkash Kumar
1

votes
0

answer
291

Views

java.io.NotSerializableException using Primefaces and Weblogic

I'm using Primefaces 6.1 running on a clustered WebLogic Server (Mojarra 2.2.8) Version: 12.2.1.3.0 and during the session replication i'm getting the following exception:
f1l0
1

votes
0

answer
118

Views

Primefaces datatable selection malfunctions after update

I am facing a problem with the update of the datatable component in the primefaces. My goal is to update the datable and the selected row of the table to remain highlighted. Instead of this I have the following: The 1st, 3rd, 5th,... selected highlighted row stays selected after the update whereas t...
evaliotiri
1

votes
0

answer
277

Views

Primefaces SelectCheckboxMenu ajax not working when itemValue attribute is set as custom object instead of an Integer or String [duplicate]

This question already has an answer here: commandButton/commandLink/ajax action/listener method not invoked or input value not set/updated 10 answers Validation Error: Value is not valid 3 answers How to populate options of h:selectOneMenu from database? 5 answers I am trying to perform ajax on s...
Shivani Bhansali
1

votes
0

answer
344

Views

primefaces pe:ckEditor not work use custom toolbar in dialog framework

I'm doing html editor with primefaces pe:ckEditor and use custom toolbar, it's in a dialog framework. When the pe:ckEditor been opened, it not working as my expected. Here are my code. @ViewScoped @ManagedBean @Named('myBean') public class MyBean{ @PostConstruct public void init() { //do something }...
西门吹雪
1

votes
0

answer
53

Views

Adjust elements in table header to show inline

I am having three to four elements inside 'th' of a table. The header label The sort icon label of filter but in my case, it is hidden though present in dom Input text filter or a date range selector wrapped in div. This 'th' is auto-generated by component library primefaces, I have no control over...
user8829150
1

votes
0

answer
93

Views

Security Concerns of Migrating from Richfaces to Primefaces

I have a small Richfaces web application hosted on a JBoss EAP 6.4 server. I want to now run the app instead on a JBoss EAP 7.0 server, and modify the app to use Primefaces v6.1 instead of Richfaces. Can anyone tell me (or make an educated guess) as to what may be some new security concerns or impl...
Fuzzy Analysis
1

votes
1

answer
160

Views

Glassfish - java.lang.NoClassDefFoundError: org/primefaces/model/UploadedFile

I have a maven based project. This is how the project looks like in eclipse: So I have separate front and back end that are packed into one EAR. The application were deployed on Weblogic 12c server but now I have to move it to Glassfish. I can deploy to Glassfish and my application is running. But,...
solarenqu
1

votes
0

answer
122

Views

Primefaces' textEditor with too big picture

spring 4.3.6, jsf 2.2.14, primefaces 6.1, jetty 9.4.4. When I send too big picture from Primefaces' textEditor to the Jetty server, there is [WARNING] in the log received from the Jetty: org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content. How can I inform client user about...
Martin
1

votes
0

answer
16

Views

Primefaces component calendar messes with component wizards next

When i use calendar component inside the wizard component next and back buttons suddenly don't work and my function sledeciKorak is not even called. When i remove calendar components everything works normally. This is my sledeciKorak function. Also I didn't put here my beans and controller but I thi...
spaja
1

votes
1

answer
702

Views

Dynamically scrollable Primefaces datatable

We have a Primefaces datatable which has a non-fixed number of columns. Basically, some header columns contains '+' buttons that unfold other columns. Here are two pictures that show that behaviour: These columns can have different widths (first one shows single digits, then doesn't need a lot of pl...
Abrikot
1

votes
0

answer
60

Views

PrimeFaces invalidated component is not rerendered

PrimeFaces 6.1. I have a SelectOneListBox with letters. Upon change, ajax event is triggered and fills PickList with words starting with selected letter. The PickList is valid if it contains the word XX, where X is the selected letter. If the PickList is valid, everything works fine. If it gets inva...
Vojta
1

votes
2

answer
236

Views

SelectOneButton “unselectable” attribute not working

I don't want my SelectOneButton to be unselectable (clicking on a button twice). There supposedly is an attribute called 'unselectable', which defaults to true, but setting it to false has no effect. Is there anything else I can try?
Selbi
1

votes
1

answer
83

Views

PropertyNotFoundException for p:column filterValue attribute

we are trying to migrate our application from tomcat/websphere to was liberty profile. Additionally we are upgrading the myfaces-version, we are using 2.1, to myfaces-2.2. To save the current state of a table (filtering) we store the filtered value in a map and read it when loading the table (filter...
Jens B
1

votes
0

answer
243

Views

<p:ajax listener> not working on event change but working onload

This ajax listener is called when the page is loaded but not when the item is selected. The bean is viewscoped. Secondly I have to call the function like listener='#{usdc.countryChange()}' and not listener='#{usdc.countryChange}'. If I remove the parentheis I get the error such a field is not defi...
Shubham Khare
1

votes
1

answer
256

Views

dialog Framework is not firing a close event

I open dialog in the bean method like that RequestContext.getCurrentInstance().openDialog('/pageName.xhtml', options, null); it's inside actionListener of button clicked. There is also a 'close' button on the pageName.xhtml which executes: RequestContext.getCurrentInstance().closeDialog(null); But...
SergeiK
1

votes
0

answer
130

Views

server is not storing view state as the value of javax.faces.ViewState post migration to wildfly 10 from JBoss 6

We have migrated our application from JBoss 6 to Wildfly 10. After migration the server is not storing the view state as the value of javax.faces.ViewState hidden input field after the first http response. Application logic is storing it on server end and the scenario is to validate input text fiel...
A. B.
1

votes
0

answer
59

Views

How to expose an iterator variable from a JSF composite component to the IDE in the using page

My setup is Eclipse Oxygen, JSF 2.2, JBoss 7.0 (Mojarra JSF implementation) and Primefaces 6.0. I've wrapped the Primefaces dataTable in a JSF composite-component (my:dataTable): The Primefaces column is implemented as a custom component (my:column): And the component is called in the using page: Ev...
Stephan Sladek
1

votes
0

answer
135

Views

How to dataBind spreadSheet (SpreadJS) to a server side bean

I have built a Spring WebMVC App with Primefaces. This app contains a list of nodes which can be dragged into the spreadSheet (I m working with SpreadJS). Behind each node there is a model and a bean. Evey node has a name and an input type. For example the node can be comboBox or simple input or inp...
S.Fahmi

View additional questions