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.

148 questions
11
votes
4 answers

Changing faces-config.xml from 2.2 to 2.3 causes javax.el.PropertyNotFoundException: Target Unreachable, identifier 'bean' resolved to null

Have the following code snippets: Bean: import javax.faces.view.ViewScoped; import javax.inject.Named; @Named(value = "directoryBean") @ViewScoped public class DirectoryBean implements Serializable { private static final long serialVersionUID =…
AndrewG10i
  • 619
  • 1
  • 6
  • 21
10
votes
1 answer

How to install one jar variant of JSF 2.3 (javax.faces.jar) on WildFly

I want to use the JSF 2.3 on my application, but WildFly uses the 2 JAR variant for 2.2. Oracle said here https://javaserverfaces.java.net/2.3/download.html that won't release a 2.3 2 JAR variant.
erickdeoliveiraleal
  • 558
  • 2
  • 7
  • 19
7
votes
1 answer

Notify the user about the end of the session in JSF 2.3

JavaEE, JSF-2.3, Websocket, WebApplication, WildFly. For each user, a session is created, within which it operates, authorization, authentication, and so on. After 15 minutes of inactivity, the session is automatically destroyed, thanks to the…
Konstantin
  • 83
  • 6
5
votes
2 answers

Session Fixation and Session Scoped Beans in JSF 2.3 with CDI

It's a common best practice to renew the HTTP session when logging in a user. This will force a new session ID, avoiding session fixation vulnerabilities. Is there a preferred pattern for implementing this with CDI when @SessionScoped beans are…
Didjit
  • 625
  • 1
  • 5
  • 16
5
votes
4 answers

primefaces and JSF 2.3 javascript error Cannot read property 'error' of null

I am using primefaces with JSF2.3 here is the way my dependencies are dependencies { providedCompile 'javax.servlet:javax.servlet-api:4.0.0' compile group: 'javax.faces', name: 'javax.faces-api', version: '2.3' compile group:…
Toumi
  • 2,266
  • 3
  • 29
  • 27
5
votes
1 answer

EJB and managed bean injections in @FacesConverter and @FacesValidator in JSF 2.3

@FacesConverter and @FacesValidator are not eligible for EJB or managed bean injection points up to JSF 2.2. They are supposed to work with JSF 2.3 (currently available as a milestone only) using an additional managed attribute with @FacesConverter…
Tiny
  • 24,933
  • 92
  • 299
  • 571
4
votes
1 answer

and reducing submitted post data size in large form

i have a huge jsf-page with an underlying ViewScopeBean that contains a very large form (containing nearly 100 inputs) with many ajaxified input fields. for every input field, i only submit the current value and render nothing. so just a sample…
Steve
  • 344
  • 1
  • 7
  • 15
4
votes
2 answers

JSF 2.3 Custom converter with generics

We now started to use JSF 2.3 on our existing JSF 2.2 project. On our custom converters we got warning Converter is a raw type. References to generic type Converter should be parameterized. Problem that we experiencing is when we tried to fix…
Znas Me
  • 150
  • 13
3
votes
1 answer

How to use jsf in "namespaced mode"

In a website we want to integrate some snippets provided by jsf-applications, think of a dashboard-app or a "portal-light". While analyzing the requirements we came across a blog-post by Arjan Tjims on jsf 2.3 new features, where he mentioned a new…
frifle
  • 780
  • 4
  • 22
3
votes
2 answers

Why does the first AJAX call reset my view parameter?

I cannot find out why the first ajax call causes the setter of my view parameter to be called again while every subsequent call does not call the setter again. I have the following simple view bean: package test; import…
Björn Zurmaar
  • 704
  • 1
  • 8
  • 20
3
votes
0 answers

Target Unreachable, identifier 'user' resolved to null - unsure of what is wrong after exhaustive research

Preface: I have thoroughly looked at about 10 different related stackoverflow articles such as the ones below, none of which solved my question. So I am presenting the complete code to see if anyone knows what might be wrong with my project. Please…
Sekai
  • 31
  • 3
3
votes
0 answers

Cannot inject ExternalContext or RequestParam in CDI @RequestScoped managed Bean

Searching around the web I found that it should be possible to @Inject some convenient JSF Objects into CDI beans, these objects should be Produced by JSF and exposed via Qualifiers in javax.faces.annotation.* (like @RequestMap or…
jfer
  • 61
  • 5
3
votes
2 answers

Is it possible to inject a bean to phaselistener when using JSF 2.3, tomcat with weld cdi implementation?

I want to inject a @SessionScoped and a @RequestScoped beans into my PhaseListener implementation, but I got NullPointerException. I use tomcat with weld implementation to achieve CDI. I started to migrate JSF 2.2 to 2.3, so I changed to CDI from…
BravoNine
  • 93
  • 1
  • 8
3
votes
1 answer

How to Upgrade project from Jsf 2.2 to Jsf 2.3 in Eclipse

Currently I am working on project using Primefaces 6.1 and Jsf 2.2 using Eclipse. Now I want to upgrade project from Jsf 2.2 to Jsf 2.3. But I am facing some issues after replacing Jsf's jar files with javax.faces-2.3.2.jar, javax.faces-api-2.3.jar…
Afridi
  • 5,226
  • 1
  • 15
  • 25
3
votes
0 answers

JSF 2.3, CDI 2.0 | class com.sun.faces.flow.FlowDiscoveryCDIHelper is deprecated from CDI 1.1

Configured a maven webapp for JSF 2.3, CDI 2 on Tomcat 8.5 with WELD 3. Cant figure out, how to fix this WARN-message: WARN o.j.w.Bootstrap [addAnnotatedType:118] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType) used for class …
Jens Fuchs
  • 55
  • 1
  • 6
1
2 3
9 10