You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Nick Belaevski (JIRA)" <de...@myfaces.apache.org> on 2011/02/17 13:29:24 UTC

[jira] Created: (MYFACES-3046) Application#createComponent ignores rendererType defined by component class when locating resources

Application#createComponent ignores rendererType defined by component class when locating resources
---------------------------------------------------------------------------------------------------

                 Key: MYFACES-3046
                 URL: https://issues.apache.org/jira/browse/MYFACES-3046
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-314
    Affects Versions: 2.0.3
            Reporter: Nick Belaevski
         Attachments: jsf2test.zip

When application developers uses Application#createComponent(String) method, component resources defined in its renderer are not added to the page, though renderer is picked up for encoding component correctly.
See attached project for example.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (MYFACES-3046) Application#createComponent ignores rendererType defined by component class when locating resources

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

Leonardo Uribe resolved MYFACES-3046.
-------------------------------------

    Resolution: Invalid
      Assignee: Leonardo Uribe

The javadoc for JSF 2.0 rev A says this:

"... Instantiate and return a new UIComponent instance of the class specified by a previous call to addComponent() for the specified component type.

Before the component instance is returned, it must be inspected for the presence of a ListenerFor (or ListenersFor) or ResourceDependency (or ResourceDependencies) annotation. If any of these annotations are present, the action listed in ListenerFor or ResourceDependency must be taken on the component, before it is returned from this method. This variant of createComponent must not inspect the Renderer for the component to be returned for any of the afore mentioned annotations. Such inspection is the province of createComponent(ValueExpression, FacesContext, String, String) or createComponent(FacesContext, String, String). ...."

This is what MyFaces does, and we can't change it. Any change should be done at spec level. It is known this problem prevent JSF 2.0 resource API to work correctly on jsp case.

> Application#createComponent ignores rendererType defined by component class when locating resources
> ---------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3046
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3046
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.3
>            Reporter: Nick Belaevski
>            Assignee: Leonardo Uribe
>         Attachments: jsf2test.zip
>
>
> When application developers uses Application#createComponent(String) method, component resources defined in its renderer are not added to the page, though renderer is picked up for encoding component correctly.
> See attached project for example.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MYFACES-3046) Application#createComponent ignores rendererType defined by component class when locating resources

Posted by "Nick Belaevski (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995782#comment-12995782 ] 

Nick Belaevski commented on MYFACES-3046:
-----------------------------------------

Also reported as http://java.net/jira/browse/JAVASERVERFACES-1955

> Application#createComponent ignores rendererType defined by component class when locating resources
> ---------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3046
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3046
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.3
>            Reporter: Nick Belaevski
>         Attachments: jsf2test.zip
>
>
> When application developers uses Application#createComponent(String) method, component resources defined in its renderer are not added to the page, though renderer is picked up for encoding component correctly.
> See attached project for example.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira