You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Kennard Consulting (JIRA)" <de...@myfaces.apache.org> on 2012/09/19 10:37:07 UTC

[jira] [Created] (MYFACES-3610) Dynamically created ClientBehaviors do not call addComponentResource

Kennard Consulting created MYFACES-3610:
-------------------------------------------

             Summary: Dynamically created ClientBehaviors do not call addComponentResource
                 Key: MYFACES-3610
                 URL: https://issues.apache.org/jira/browse/MYFACES-3610
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 2.1.7
            Reporter: Kennard Consulting


I'm creating this as an issue so that I can attach a test case for it. However it behaves the same on Mojarra as on MyFaces so possibly this is a design issue.

My question is this:

* If I dynamically create UIComponents using Application.createComponent, I find they automatically add any dependent resources (JS/CSS) to the h:head. This is fantastic.

* If I dynamically create ClientBehaviours using Application.createBehavior, no dependent resources get added.

Am I supposed to add such resources manually? If so, how am I supposed to know what they are? For example, if I am dynamically adding an AjaxBehavior the exact name of the JavaScript file depends on which JSF implementation I am using.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira