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
13
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
  • 661
  • 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
  • 708
  • 2
  • 9
  • 21
9
votes
2 answers

Why is HTTPServletRequest injectable via CDI but HTTPServletResponse isn't?

This question took off because I read Arjan Tijms blogpost about JSF 2.3. There, he list all JSF artifacts which can be injected via CDI. Although HttpServletRequest is mentioned, HttpServletResponse doesn't appear on the said list which I didn't…
Diggi55
  • 174
  • 8
9
votes
0 answers

Widlfy 22 WELD Warnings with Form Based Programmatically Login

I have a web application currently deployed on Wildfly 22, using JSF 2.3 and OpenJDK 11. I'm currently migrating the login page from j_security_check to a programmatically login, following BalusC example on this post: Performing user authentication…
areal
  • 157
  • 5
9
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
  • 785
  • 2
  • 8
  • 26
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…
7
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,925
  • 4
  • 37
  • 31
6
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
  • 27,221
  • 105
  • 339
  • 599
5
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
  • 81
  • 6
4
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
  • 65
  • 1
  • 9
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
  • 384
  • 1
  • 7
  • 17
4
votes
1 answer

JSF 2.3 with Spring 4.3 @Inject @ManagedProperty issue

I have Faces-Config.xml set to web-facesconfig_2_3.xsd. Got the latest jars for JSF 2.3. Using CDI annotations for JSF and Spring, created two beans with request scope and tries to inject managed property from another bean paymentBean. Followed this…
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
  • 190
  • 1
  • 15
3
votes
1 answer

ClassCastException for with validation on ajax update when INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL is active

I have a that has a required-validation on. If I submit the form, I get a validation error when nothing is selected. So far, this ist expected. However, if I do an ajax update on the checkbox then, I get a ClassCastException.…
Björn Landmesser
  • 953
  • 10
  • 26
3
votes
0 answers

Session is never expired in JSF Websocket

I'm using Omnifaces websocket. Session is never timeout. I tried with jsf websocket. There's the same result. When I go to another page that doesn't use websocket and stays at that page, session will expire normally. Here are example of my codes…
PeterL355
  • 75
  • 1
  • 9
1
2 3
10 11