You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Volodymyr Siedlecki (Jira)" <de...@myfaces.apache.org> on 2022/04/01 16:35:00 UTC

[jira] [Comment Edited] (MYFACES-4432) Implicit 'request' object fails to be resolved by CDI

    [ https://issues.apache.org/jira/browse/MYFACES-4432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17515997#comment-17515997 ] 

Volodymyr Siedlecki edited comment on MYFACES-4432 at 4/1/22 4:34 PM:
----------------------------------------------------------------------

Sounds good. Let's see what he says.
Otherwise, if someone needs this to work, the workaround I found is to just use _#\{externalContext.getRequest()}_ instead.


was (Author: volosied):
{{Sounds good. Let's see what he says. }}
{{Otherwise, if something needs this to work, the workaround I found is to just use _#\{externalContext.getRequest()}_ instead. }}

> Implicit 'request' object fails to be resolved by CDI
> -----------------------------------------------------
>
>                 Key: MYFACES-4432
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4432
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-372
>    Affects Versions: 3.0.1, 2.3.9, 2.3-next-M6
>            Reporter: Volodymyr Siedlecki
>            Priority: Major
>
> When using the "@{color:#4ec9b0}FacesConfig"{color} annotation, CDI is used to perform EL resolution (see 5.6.3 of the JSF 2.3 Spec) instead of the ImplicitObjectELResolver. 
> Table 5-11 lists all the objects that should be resolved. It looks like request was missed by accident. 
> _______
> Test Code:
> {color:#d4d4d4}Java:
> @{color}{color:#4ec9b0}FacesConfig{color}{color:#d4d4d4}({color}{color:#dcdcaa}version{color}{color:#d4d4d4} = {color}{color:#4ec9b0}Version{color}{color:#d4d4d4}.{color}{color:#4fc1ff}JSF_2_3{color}{color:#d4d4d4}){color}
> {color:#d4d4d4}@{color}{color:#4ec9b0}ApplicationScoped{color}
> {color:#569cd6}public{color}{color:#d4d4d4} {color}{color:#569cd6}class{color}{color:#d4d4d4} {color}{color:#4ec9b0}FacesConfiguration{color}{color:#d4d4d4} {}
> HTML:
> {color}
> {color:#808080}<{color}{color:#569cd6}div{color}{color:#808080}>{color}{color:#d4d4d4} request: #\{request} {color}{color:#808080}</{color}{color:#569cd6}div{color}{color:#808080}>{color}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)