You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thomas Andraschko (JIRA)" <de...@myfaces.apache.org> on 2011/01/26 13:41:43 UTC

[jira] Created: (EXTCDI-128) Injection in BV MessageInterpolator does not work

Injection in BV MessageInterpolator does not work
-------------------------------------------------

                 Key: EXTCDI-128
                 URL: https://issues.apache.org/jira/browse/EXTCDI-128
             Project: MyFaces CODI
          Issue Type: Bug
          Components: JEE-BV1-Module, JEE-JSF20-Module
    Affects Versions: 0.9.2
         Environment: Myfaces 2.0.3, CODI 0.9.2, ExtVal 2.0.4, OWB 1.0.0, PrimeFaces 2.2-RC2 
            Reporter: Thomas Andraschko


The getMessageInterpolator() method in InvalidValueAwareValidatorFactory injects the bean into the wrong MessageInterpolator.
In my opinion CODI should do injection into the unwrapped MessageInterpolator (getValidatorFactory().getMessageInterpolator()).
I have tested this in my environment and works without problems.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (EXTCDI-128) Injection in BV MessageInterpolator does not work

Posted by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/EXTCDI-128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek resolved EXTCDI-128.
-------------------------------------

    Resolution: Won't Fix

it's possible to wrap it multiple times -> dependency injection isn't supported for custom implementations of MessageInterpolator.
it would be possible based on reflection - however, that would reduce the performance significantly.
resolving beans is also possible via methods of the BeanManager - use BeanManagerProvider.getInstance().getBeanManager() to get the BeanManager.

the implementation is correct - injection for InvalidValueAwareMessageInterpolator is performed for injecting MessageContext and Logger.

> Injection in BV MessageInterpolator does not work
> -------------------------------------------------
>
>                 Key: EXTCDI-128
>                 URL: https://issues.apache.org/jira/browse/EXTCDI-128
>             Project: MyFaces CODI
>          Issue Type: Bug
>          Components: JEE-BV1-Module, JEE-JSF20-Module
>    Affects Versions: 0.9.2
>         Environment: Myfaces 2.0.3, CODI 0.9.2, ExtVal 2.0.4, OWB 1.0.0, PrimeFaces 2.2-RC2 
>            Reporter: Thomas Andraschko
>
> The getMessageInterpolator() method in InvalidValueAwareValidatorFactory do injection into the wrong MessageInterpolator.
> In my opinion CODI should do injection into the unwrapped MessageInterpolator (getValidatorFactory().getMessageInterpolator()).
> I have tested this in my environment and works without problems.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.