Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port MYFACES-4432 to JSF 2.3 and Faces 3.0 (Resolve request object in facelets) #21601

Closed
volosied opened this issue Jun 29, 2022 · 0 comments · Fixed by #21599
Closed

Port MYFACES-4432 to JSF 2.3 and Faces 3.0 (Resolve request object in facelets) #21601

volosied opened this issue Jun 29, 2022 · 0 comments · Fixed by #21599
Assignees
Labels
in:Web Components release bug This bug is present in a released version of Open Liberty release:22008 team:Sirius

Comments

@volosied
Copy link
Member

volosied commented Jun 29, 2022

Describe the bug
When using the "@FacesConfig" annotation in a JSF 2.3 or Faces 3.0 application, the #{request} object fails to resolve. An empty string is returned instead.

Steps to Reproduce

  • Use @FacesConfig in the 2.3 or 3.0 application, and reference request in a facelet.

Expected behavior
The object should resolve, so that any of it's methods can be called. See table 5-11 of the JSF 2.3 spec for all objects which should be resolved.

Diagnostic information:

  • OpenLiberty Version: All versions
  • Affected feature(s) jsf-2.3, faces-3.0
  • Java Version: N/A

Additional context
Note: The implicit request and session objects are resolved via JSF's ImplicitObjectResolver not CDI. This is so that HttpServletRequest and HttpSession are not made injectable by JSF (i.e.. JSF should not use the Producer annotation in the implementation for HttpServletRequest and HttpSession). CDI should directly manage the injectablility of these objects instead. See the the discussion https://github.com/jakartaee/faces/issues/1564 for reference.
https://issues.apache.org/jira/projects/MYFACES/issues/MYFACES-4432

@volosied volosied added in:Web Components release bug This bug is present in a released version of Open Liberty team:Sirius labels Jun 29, 2022
@volosied volosied changed the title Port MYFACES-4432 to JSF 2.3 and Faces 3.0 Port MYFACES-4432 to JSF 2.3 and Faces 3.0 (Resolve request object in facelets) Jun 29, 2022
@pnicolucci pnicolucci added this to General Issues in Web Tier Team via automation Jun 30, 2022
Web Tier Team automation moved this from General Issues to Completed Tasks Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:Web Components release bug This bug is present in a released version of Open Liberty release:22008 team:Sirius
Projects
Archived in project
Web Tier Team
  
Completed Tasks
Development

Successfully merging a pull request may close this issue.

3 participants