myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Petracek (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (MYFACES-3786) Web Container injection support should be provided for additional lifecycle artifacts (not just managed beans)
Date Tue, 15 Oct 2013 14:12:42 GMT

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

Gerhard Petracek commented on MYFACES-3786:
-------------------------------------------

again: cdi can't do it if you need to manage instances externally - that's the point i tried
to explain in the previous comments over and over again.
if you bypass the cdi context-management, you have to do the equivalent on your own.

#1 and #5 are very similar (what you have to do with the result is the same: store it in the
same scope the instance gets stored).
it's more a matter of taste if you force an implementation to return *something* and manage
it or pass in a data-structure to store additional meta-data.
#5 just allows to extend it later on without breaking backward compatibility (you just add
properties to bean-entry once they are needed, instead of changing the parameters).

i can also provide a patch for #1, there isn't a lot to change for it.

> Web Container injection support should be provided for additional lifecycle artifacts
(not just managed beans)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3786
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3786
>             Project: MyFaces Core
>          Issue Type: Task
>          Components: JSR-344
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.2.0
>
>         Attachments: cdiELresolverWeb.zip, cdiELResolver.zip, cdiPartialViewContext.war,
cdiPartialViewContext.zip, cdi.patch, cdiphaselistener1.patch, cdiphaselistener2.patch, cdirevised.patch,
cdiValidatorSource.zip, cdiValidator.war, MYFACES-3786-1.patch, MYFACES-3786-2.patch, MYFACES-3786_bean-entry_draft_01.patch
>
>
>  This issue is all about how to inject beans into jsf artifacts.
> See JSF 2.2 section 5.4.1
> The problem here is in some point we need to give the control to the underlying environment
to inject beans into the artifacts, but we don't know much about how to properly do it, so
we need to try with examples.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message