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
3
votes
1 answer

f:validateWholeBean in JSF 2.3

I want to implement f:validateWholeBean with JSF 2.3. I tried to implement this example with Mojarra 2.3.0-m05 and Tomcat 8:
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
3
votes
0 answers

Upload multiple files with JSF 2.3

Based on this post Show progress percentage of h:inputFile upload I would like to create upload page with multiple files.
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
2
votes
2 answers

@Inject not working in @FacesConverter after upgrade to JSF 2.3

I migrated a Primefaces 6 application to JBoss EAP 7.4 and upgraded to Primefaces 10 and JSF2.2 to JSF2.3. After this migration, the @Inject we had in the FacesConverter is not being initialized and thus returning null. This question might be…
Stephan
  • 696
  • 15
  • 37
2
votes
0 answers

JSF 2.3 not compatible with certain HTML5 elements without closing tag like link

I have this use case where an index.xhtml page is created by a JavaScript framework. This page contains following element: The page starts with following doctype, which is standard…
onderbewustzijn
  • 935
  • 7
  • 32
2
votes
1 answer

org.omnifaces.cdi.push.SocketChannelManager$ViewScope cannot be cast to com.sun.faces.push.WebsocketChannelManager$ViewScope

It's a follow-up to my previous question, where I couldn't make f:websocket work possibly due to a bug in Mojarra 2.3.9. I wanted to give it another try with o:socket. My dependencies include: Tomcat 8.5.42 Mojarra 2.3.9 OmniFaces 2.7.5 Weld…
Andrew Tobilko
  • 48,120
  • 14
  • 91
  • 142
2
votes
0 answers

A reconnecting websocket can't connect to the server with FacesContext.getCurrentInstance() being resolved to null

I have a plain Tomcat 8.5.47 having the following dependencies installed. org.glassfish javax.faces 2.3.9
Andrew Tobilko
  • 48,120
  • 14
  • 91
  • 142
2
votes
1 answer

FacesConverter is null (JSF 2.3, CDI 2.0)

I tried to setup a FacesConverter to display some entity through my JSF page as referenced in JSF specification. I'm running the following: - Open Liberty 19.0.0.11 (tested on 19.0.0.6 as well, don't ask me why this version, I picked randomly…
Cedric
  • 23
  • 2
2
votes
1 answer

Unexpected behavior with ViewScoped beans when using Spring-Session clustering with Hazelcast

I am working on introducing clustering to a JSF based Spring-Boot web application and as soon as we enabled session-replication with Hazelcast, we started noticing that several of our JSF pages that utilize ViewScoped beans were no longer…
2
votes
1 answer

using javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL causes viewParam to be null

I'm trying to switch an application from WildFly 13 (Java EE 7, JSF 2.2.15) to WildFly 16 (Java EE 8, JSF 2.3.9). Tried both PrimeFaces 6.2 and 7.0 In web.xml javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL is set. JSF 2.2 version…
erickdeoliveiraleal
  • 708
  • 2
  • 9
  • 21
2
votes
1 answer

Getting UnsatisfiedDependencyException: while using JSF @Push-annotation with Spring frame work

Trying to Migrate from Primefaces PUSH to JSF Push(Websocket), While trying out JSF Push in Java project JSF Push works fine as expected. But when trying in Spring application I'm getting the below…
Anudeep
  • 21
  • 2
2
votes
1 answer

How to use f:importConstants in composite component?

What is the best way to use f:importConstants inside of a composite component? You can't place f:metadata there, so what is the best workaround here? With Omnifaces and o:importConstants in JSF 2.2, that was no problem, it was allowed everywhere,…
jheider
  • 111
  • 8
2
votes
2 answers

putting jsf.js at the end of the body

I have a Java EE 8 web application deployed. it uses JSF 2.3 I test it with google PageSpeed Insights. and a recommendation says: Eliminate render-blocking…
usertest
  • 2,140
  • 4
  • 32
  • 51
2
votes
1 answer

JSF selectCheckboxMenu & Hibernate @ManyToMany remove values

First of all some details von the used software: I'm working with primefaces 6.2.11 on Wildfly 14.0.1Final with JSF 2.3. Problemdescription: I have two entities (User & Group) related many2many and I want to remove a relation on the side which is…
Sebastian S.
  • 493
  • 1
  • 5
  • 17
2
votes
1 answer

Can't Pass String as parameter JSF 2.3

I'm using Primefaces 6.0 and JSF 2.3, i passed String as parameter but it become empty! java: FacesContext context = FacesContext.getCurrentInstance(); ExternalContext extContext = context.getExternalContext(); String redirected =…
Sidaoui Majdi
  • 399
  • 7
  • 26
2
votes
1 answer

Websocket CdiUtils NPE using

This application has been working fine in TC7, Spring 3, and JSF 2.2 but I wanted to add the push capabilities of JSF 2.3 so I upgraded to TC 9.0.8, Spring 5.0.5, and JSF 2.3.0 After some simple initial problems due to the upgrades The app deploys…
snakedog
  • 357
  • 1
  • 2
  • 13
1 2
3
10 11