35,768
questions
0
votes
0
answers
14
views
can't inject(?) spring @Service bean into jsf @Named managed bean via SpringBeanAutowiringSupport and @Autowired
spring and jsf both work on their own without any issues so I'm only including code which is relevant for the spring-jsf connection.
managed bean:
import jakarta.annotation.PostConstruct;
import ...
0
votes
0
answers
42
views
PrimeFaces FileUpload Not Working - Primefaces - 14.0.6, Tomcat - 10.1.31
I am using PrimeFaces 14.0.6, Java 17, Spring 6, and Tomcat 10.1.31, jakarta.faces (Mojarra) - 4.0.9. I am trying to implement file upload functionality using PrimeFaces, but when I upload the file ...
0
votes
0
answers
27
views
PrimeFaces InputNumber is changing value type in webpage after losing focus
I'm having an issue with one of the PrimeFaces inputNumber component. It seems that, after losing the hover of the component, the type of the value inside the inputNumber change from a decimal to a ...
0
votes
0
answers
44
views
cant inject spring bean into jsf managed Bean via @Inject @ManagedProperty("#{springBean}")
(using spring (spring-webmvc 6.1.13), jsf (jakartaee-web-api 9.1.0), maven, glassfish7)
i am trying to inject a spring bean into a jsf bean via @Inject @ManagedProperty("#{springBean}"). i ...
0
votes
2
answers
50
views
onkeypress allowing only allowed domains while writing email address
For my xpages/jsf application I have setup for an xe:input control the following validation:
<xp:this.validators>
<xp:validateConstraint
regex="${application.regex_email}"
...
0
votes
0
answers
13
views
checkbox rendering issue after upgrading primefaces
I have two checkbox's it should render based upon the conditions but for me the both checkbox are rendering
I got this issue after upgrade Primefaces to 12.0.0 and JSF to 4
this is the checkbox code ...
0
votes
0
answers
12
views
JSF panelGroup onclick [duplicate]
I have a panelGroup which contains 3 spans which operates as buttons.
<h:form id="header-form">
<h:panelGroup id="navigation">
<div class="selec&...
2
votes
1
answer
41
views
How to Reapply Custom Extender Logic to PrimeFaces p:schedule After update() Call?
I'm using the PrimeFaces p:schedule component in my JSF application with a custom JavaScript extender that adds additional content to each event using the eventContent property in FullCalendar. ...
0
votes
0
answers
14
views
Parent not an instance of EditableValueHolder
I got an error 14:44:53,646 "ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /Lab3/main.xhtml: jakarta.servlet.ServletException: /main.xhtml @66,75 <f:...
0
votes
0
answers
17
views
selectCheckboxMenu in PrimeFaces is not sendind the data to the java class that manage the fron end
I have a project with Java and Primefaces.
The java class has a list of DevicesTypes that are loaded from the database and then the User can update them.
The problem is that the list is not received ...
0
votes
0
answers
74
views
Jakarta PrimeFaces 'p:commandButton' won't execute my 'action(Listener)' [duplicate]
Jakarta JavaFaces 'h:commandButton' (OK):
<h:form id="form">
<h:commandButton value="h:doButtonActionListener" process="@this" actionListener="#{...
0
votes
1
answer
37
views
XPages - validator not throwing a message to the screen
I have set up a validator class for an xp:input control:
<xp:inputText
id="inpTeamName"
title="${strings.label_name_team_title}"
value="#{teamBean.team.name}&...
0
votes
1
answer
24
views
JSF CRUD Netbeans Tutotial - Cannot insert explicit value for identity column in table when IDENTITY_INSERT is set to OFF
I am following this tutorial where you can create a JSF CRUD application directly from a database (Generate Entity Classes from database and then Generate JSF pages from Entity Classes).
When I try to ...
1
vote
1
answer
242
views
java.lang.ClassNotFoundException: jakarta.enterprise.inject.spi.el.ELAwareBeanManager
I am currently migrating a project from Java 11 to Java 17, Spring 5 to Spring 6, and from RichFaces to PrimeFaces 14 (Jakarta). After making the necessary changes, I am encountering the following ...
0
votes
0
answers
39
views
Show JSF EL call hierarchy in Eclipse 2023-09
I want to be able to see Expression Language calls in the call hierarchy of a JSF bean method as in this question, but for the most recent JBoss-supported Eclipse release, 2023-09 (I would have just ...
0
votes
0
answers
59
views
Can I make JSF faster with componentCache if yes where?
Jsf Implementations are a litle bit slow because of searching components by clientId with recursive iteration, or visitTree methods.
We made first a mojarra patch 2.1.18...
...
1
vote
0
answers
53
views
Where are the Java classes BarScale, CategoryTicks and BarOptions.IndexAxis?
I am migrating from PrimeFaces 13 to 14. The migration guide says the new chart component allows raw JSON or XDEV Chart.js Java Model. I copied the Java code for the bar chart example from the ...
1
vote
1
answer
86
views
After upgrading PrimeFaces 6.2 to 12 the <p:messages autoUpdate="true"> does not show up anymore
We have upgraded JSF from 2.2 to JSF-4.0 (jakarta-faces-4.0.5)
And Primefaces from 6.2 to 12.0.0-jakarta
we made changes according to the upgrade like namespace changes and attribute value changes ...
0
votes
0
answers
24
views
How to solve TomEE start "WARNING: You didn't specify org.apache.batchee.jmx.application and JMX is already registered, skipping"?
JSF version:
<dependency>
<groupId>jakarta.platform</groupId>
<artifactId>jakarta.jakartaee-api</artifactId>
<version>10.0.0</version>
<...
1
vote
2
answers
55
views
NoSuchMethodError when Exporting PDF with PrimeFaces and OpenPDF
I am working on a JSF application using PrimeFaces 14.0.3 for PDF exports.
<p:commandButton
id="btnPdf"
...
0
votes
1
answer
40
views
PrimeFaces Jakarta 14.0.4 dataExporter does not export PDF
<h:commandLink>
<p:graphicImage value="#{resource['images:exportIcons/pdfExport.png']}" width="40"/>
<p:dataExporter type="pdf" target="...
1
vote
0
answers
36
views
Using Eclipse Transformer to upgrade Richfaces to Jakarta 10 didn't work
I'm trying to deploy our richfaces heavy applications to EAP 8. Replacing it will be the next goal, but for now i just need it to work as before.
Has anybody succesfully tried that already?
After ...
0
votes
0
answers
58
views
Why primefaces ajax rowSelect event oncomplete method argument id is empty?
My code:
<h:form id="form">
<p:dataTable var="article" value="#{articleTable.articles}" lazy="true"
selection="#{articleTable....
0
votes
0
answers
18
views
How to solve the required that blocks the automatic loading of a field from another field that is an autocomplete in p:datatable
I'm using an autocomplete to load the libelle of my object into a libelle field, and I remind you that both fields are required (autocomplete of type object and libelle of type string). Now my problem ...
1
vote
1
answer
47
views
Primefaces Autocomplete Converter similar to omnifaces.SelectItemsConverter [duplicate]
I am working on a web application using primefaces. I have an autocomplete field that gets its value from a pojo object. I would like to know if there is a converter solution similar to omnifaces....
0
votes
1
answer
38
views
How to call javaScript from Controler on Firefox?
I'm trying to call JavaScript from bean. Script it work correct but when try to run it from bean get a error: Uncaught ReferenceError: funkcjaKolorujPredkosc is not defined
It is import to xml:
<h:...
0
votes
0
answers
65
views
Why show simplified Chinese text even I set "zh-tw" locale?
I write JSF and use primefaces, and found it show simplified Chinese text even I set "zh-tw" locale.
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:p="http://...
0
votes
0
answers
132
views
Control+Click on EL expression in Facelets not working in Eclipse after migration to Jakarta EE
I recently migrated project from javax to Jakarta EE v10, jdk 11 to 17, and Tomcat 10.1, primefaces v13
In earlier project, when I opened .xhtml files, and pressed control and clicked on any java ...
0
votes
0
answers
31
views
Why validation doesn't reset?
I'm trying to reset the error-state from a JSF component.
I saw a lot of questions about it, but I would like to try to avoid javascript/ajax if possible.
The component:
<div class="form-group ...
1
vote
1
answer
33
views
Text in Primefaces Tree cannot be copied
I need the data within the tree to be copied for user friendliness. For some reason the text cannot be selected.
<p:tree id="tree"
value="#{valid.value}"
var="var&...
0
votes
1
answer
36
views
NullPointerException when I invoke method from @Schedule of @Startup @Singleton bean
When I try to invoke method of @ViewScoped Bean from @Startup @Singleton bean I always have an error NullPointerException. I use @Schedule annotation method to call @ViewScoped bean method, why it ...
0
votes
0
answers
34
views
Primefaces 14 and Java 21, Error in streaming dynamic resource / java.io.IOException: Connection reset by peer [duplicate]
I'm using @SessionScope from org.springframework.web.context.annotation.SessionScope;
It happens when I download the file using p:fileDownload
<p:column styleClass="w-4rem">
<h:...
1
vote
0
answers
48
views
JSF OCPSoft automatically redirect request of unwritten URL to rewritten one
we are using OCPSoft Rewrite library to create pretty rewritten URLs. This works great and as expected but we now want to redirect the original unwritten URL to its rewritten since the same resource ...
0
votes
0
answers
19
views
How to write latest JSF (pom.xml)? (NoClassDefFoundError:ApplicationFactory) [duplicate]
I use JSF project generator ( https://start.jakarta.ee/ )(choose: Jakarta EE 10) and try to write some JSF page.
But met many problem, and last:
/jakartaee-hello-world/pom.xml
<?xml version="1....
0
votes
1
answer
44
views
The class 'packageName.DonacionBean' does not have the property 'donar' - Action method not detected? [duplicate]
I'm facing an issue with a Java project that uses EJB and JSF, and it's been quite frustrating. I have a simple setup where an XHTML file calls a method defined in a managed bean.
Here's my .xhtml:
&...
1
vote
1
answer
46
views
Primefaces import enum all option does not work with JSF PROJECT_STAGE is set to Production
I have this Java EE Web project where I am using Primefaces for UI components. I am using this import enum feature provided by Primefaces with an all-suffix. When my JSF PROJECT_STAGE is set to ...
1
vote
1
answer
47
views
Error "websocket is null" with <f:websocket> in a JSF page
Context : Jakarta EE 10, Payara 6.2024.7, Web profile. Java 21.
My application uses the OpenAI API and LangChain4j for un "customized" Chat.
In a Web page a form sends a question into a ...
1
vote
1
answer
60
views
Primefaces native upload not working with PrettyFaces (OCPSoft Rewrite)
I need to migrate my application to Jakarta EE 10, and here are my current configurations:
JDK 1.8
Primefaces 12.0.x
PrettyFaces 3.3.3
I have updated my pom.xml with the new dependencies, replacing ...
1
vote
0
answers
39
views
PrimeFaces Theme Designer Stuck on "Setting up..." – How to Fix?
I'm trying to use the PrimeFaces Theme Designer to customize the theme for my JSF application, but when I load the Theme Designer, it gets stuck on the "Setting up..." screen and never ...
2
votes
1
answer
82
views
Display value on each bar of the primefaces Bar Chart
Is it possible to show value on / in/ above each bars on Primefaces BarChartModel. I did not found this functionality. I use primefaces 13.0.0 i jsf application. I woul like to have somthing like this:...
1
vote
1
answer
77
views
Adding a new language to jakarta.faces.Messages internationalizations
In jakarta.faces these are the only Messages translations available (Messages shown are taken from this jar jakarta.faces-4.1.1 located at jakarta.faces.Messages):
I need to add a Messages_it....
1
vote
1
answer
53
views
PrimeFaces PickList custom localization
I have a picklist like this one:
<div class="card">
<h5>Advanced</h5>
<p:pickList id="pojoPickList" value="#{pickListView.countries}" var=&...
0
votes
1
answer
41
views
Primefaces dataTable not rendered correctly after change page
I created a notifications tray. Firstly its structure was coded using p:tabView tag and two tabs, each tab with a p:dataTable inside. When I try to change the page of one of the p:dataTable, the new ...
-2
votes
1
answer
65
views
ContextMenu of Primefaces Datatable only update the first time, the next times not work
i have a problem with Primefaces ContextMenu inside a Primefaces Datatable.
When i do click in the unique entry of ContextMenu, this update a panel inside a a dialog and show the dialog. The first ...
1
vote
0
answers
89
views
CSRF attacks problem on JSF and Primefaces
Recently, my web page has passed a pentest and the company that did it has found a problem with the CSRF attacks.
I am using:
Primefaces 10.0.0
Wildfly 23
I have read that Primefaces 10.0.0 has ...
0
votes
0
answers
51
views
Why does Eclipse throw a StackOverflowError every time it tries to validate my project?
When I select Project > Clean > [my_project], it gets about 40% through validation and consistently throws a StackOverflow error due to what appears to be infinite recursion after accessing a ...
0
votes
0
answers
14
views
How to influence the ordering of FacesContextFactory [duplicate]
I have multiple JARs in my lib directory containing the /META-INF/faces-context.xml, of which two contain a definition of a faces-context-factory. I'm getting a ClassCastException when rendering ...
0
votes
0
answers
46
views
Performance difference between Mojarra and MyFaces on a large page with many composite components
We have an application running on JBoss EAP 8, Mojarra 4.0.4, Primefaces 14. There is a large page with many composite components, with multiple places that update parts of the page with ajax (with no ...
0
votes
1
answer
28
views
How to address components inside dynamic repeat inside a composite component
Got some difficulties addressing components inside ui:repeat iterating over a collection which is a attribute of a composite component like so:
<ui:component>
<cc:interface>
&...
1
vote
1
answer
420
views
Errors running builder 'CDI (Contexts and Dependency Injection)
Am using Eclipse with JBoss Tools to develop JSF 2.3 & JPA 2.2 based web application for Apache TomEE 8.0.16 server with Hibernate as JPA implementation. My project has many drop down menus and ...