[richfaces-issues] [JBoss JIRA] (RF-12194) Support conditionnal resource dependency

Brian Leathem (JIRA) jira-events at lists.jboss.org
Thu May 17 14:47:17 EDT 2012


    [ https://issues.jboss.org/browse/RF-12194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12693778#comment-12693778 ] 

Brian Leathem commented on RF-12194:
------------------------------------

While supporting conditional resources for a component, we can also consider support conditional components.  ie. including resources for components added during an ajax update that were not present in the initial request.

For a use case, see this forum thread:
https://community.jboss.org/thread/199788
                
> Support conditionnal resource dependency
> ----------------------------------------
>
>                 Key: RF-12194
>                 URL: https://issues.jboss.org/browse/RF-12194
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: cdk
>    Affects Versions: 4.2.1.Final
>         Environment: All
>            Reporter: Paul Dijou
>              Labels: cdk, dependency, performance, resource, richfaces
>             Fix For: 4.3-Tracking
>
>
> Sometimes, when developping a component, you will need some resources only in particular case. For example, Bootstrap navbar only need Bootstrap CSS by default. But if you want to enable a collapse effect on smartphone in order to save space, you will also need bootstrap-collapse.js file.
> I'm fine with always having the JS file imported, but it would be more perfect if the resource dependency was resolved only if the collapse effect has been enabled in the navbar. So having a way to condition the import of some resource dependency.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list