Questions tagged [jsf-2.3]

JavaServer Faces (JSF) is a model-view-presenter framework typically used to create HTML form based web applications. 2.3 is the version name.

JavaServer Faces 2.3 is the major JSF upgrade that's part of Java EE 8. It has some significant new features like tighter integration with CDI, support for WebSockets, a component search expression framework and a multi-field validation.

For the real wiki, please jump over to the wiki: https://stackoverflow.com/tags/jsf/info.

160 questions
2
votes
1 answer

WildFly 12.0.0.Final JSF 2.3 & f:websocket - Class loader issue

Trying to get an EJB to notify my XHTML JSF page when a document (row) has been inserted into a MongoDB collection. Got JSF 2.3 working thanks to the answer to my earlier question: f:websocket in JSF 2.3 However after adding the serverside code to…
NOTiFY
  • 1,255
  • 1
  • 20
  • 36
2
votes
1 answer

JSF 2.3 f:websocket encryption setting

In my web application, the encryption is not made by the application server, but by the reverse proxy. I'd like to keep it that way. The relevant technology stack is the following: Application server: payara 5.181 full Java EE 8/JSF 2.3; Mojarra…
LTrenker
  • 71
  • 5
2
votes
1 answer

NPE ConfigureListener Tomcat 8 + JSF 2.3

I'm trying to setup my app to run with Tomcat 8 and JSF 2.3, but I'm getting this error: RAVE: Critical error during deployment: java.lang.NullPointerException at java.util.Objects.requireNonNull(Objects.java:203) at…
maqjav
  • 2,310
  • 3
  • 23
  • 35
2
votes
0 answers

doctype not rendered in JSF "master" template

As the subject said, the needed doctype is not rendered in my JSF pages. My used versions: Payara Server Payara Server 4.1.2.181 #badassfish (build 220)]] Mojarra 2.3.3 ( 20171008-2230 673408fa9199477d87f44521ff873d709128c88b) PrimeFaces 6.2…
Roland
  • 184
  • 1
  • 14
2
votes
1 answer

JSF 2.3 support in NetBeans 8.2 (f:importConstants, f:websocket, etc)

Faced with the issue that NetBeans 8.2 doesn't support new JSF 2.3 tags for example, in the code snippet below: NetBeans highlights f:importConstants with the following…
AndrewG10i
  • 661
  • 1
  • 6
  • 21
2
votes
1 answer

JSF-2.3 not finding my @Named CDI-1.2 managed bean

Having recently upgraded to JSF 2.3 from 2.2, I noticed that @ManagedBean was deprecated, and after some research found that I should be using CDI-1.2 managed beans and the @Named annotation. However after changing over to @Named, the JSF pages…
2
votes
1 answer

JSF: how avoid 'Component ID has already been found in the view.' error on double insert of composite component

I know what causes the following problem. I am looking for an elegant way to address the problem rather than a brute-force (and non-DRY) workaround I've found. I have a highly reusable h:form in a template (and I am aware of the dangers of "god…
1
vote
0 answers

Unexpected FacesException thrown during launch of JSF webapp on the browser

I'm new to JSF and was asked to migrate an old MyFaces 2.0 webapp (app1) from WebLogic Server 12.1.3 to Tomcat (I chose Tomcat 9 and OpenWebBeans 2.0.27). This was achieved only after being directed to upgrade MyFaces Core to version 2.3.10 (but…
UserB
  • 25
  • 5
1
vote
1 answer

JSF 2.3.14: Syntax error after (re-) rendering a JavaScript code block with constants

The following code fragment generates a javascript syntax error when I push the h:commandButton: 'use strict'; const label = '*';
Toru
  • 905
  • 1
  • 9
  • 28
1
vote
1 answer

JSF: How to throw an exception from within a facelet

Is there a way to throw an exception from within a facelet? Background: I've a component using a customised converter as parameter. So I call the component as @Named @RequestScoped public class CustomConverter implements…
Toru
  • 905
  • 1
  • 9
  • 28
1
vote
0 answers

Omnifaces ViewScoped with PWAResourceHandler

I have a web application currently deployed on Wildfly 23.0.2, using JSF 2.3 and OpenJDK 11. I'm also using the latest version of OmniFaces (3.11). One of the application requirements is PWA support. For this, I'm using PWAResourceHandler exactly as…
areal
  • 157
  • 5
1
vote
1 answer

WELD-001456: Argument bean must not be null

I have an EAR File that contains two WARs. In WAR1 there is a JSF application (everything worked fine with JSF2.2 and ManagedBeans). After migrating to JSF2.3 with CDI beans I'm getting the following Exception when trying to access the web…
Neo
  • 1,337
  • 4
  • 21
  • 50
1
vote
2 answers

JSF 2.3: "Array index out of range" when rendering a form with Url containing ''&&"

Given a url with params such that: page.xhtml?param1=value&¶m2=value It appears that after submitting a form on that page, the following exception and stack trace occurs: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0 …
T. Hu
  • 11
  • 2
1
vote
0 answers

JSF 2.3 Unhandled by MetaTagHandler for type com.sun.faces.cdi.CdiValidator error

I've just converted from JSF2.2 to JSF2.3 using WIldfly18/Mojarra 2.3.9.SP04, and I'm getting the following error when invoking a JSF page using the custom validator with custom attrributes: SEVERE…
Brooksie
  • 361
  • 2
  • 5
1
vote
1 answer

IBM Liberty with Mojarra JSF 2.3 Response already committed

I'm doing an upgrade of my IBM Liberty server to the latest version. In this process I'm upgrading our Mojarra JSF implementation from 2.2 to 2.3. There's nothing in the code that seems to be adding info after the header is loaded. It seems…
fergp25
  • 41
  • 4