[richfaces-issues] [JBoss JIRA] (RF-13121) Investigate using require.js to load widget sources

Brian Leathem (JIRA) jira-events at lists.jboss.org
Wed Aug 7 20:53:26 EDT 2013


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

Brian Leathem commented on RF-13121:
------------------------------------

In order for us to be able to effectively use require.js to manage RichWidgets dependencies, the dependencies of RichWidgets themselves need to be manageable by AMD.  While jQuery.js is itself AMD compatible, unfortunately the jQuery UI widget factory (and widgets built using that factory) are not AMD compatible.

This article explains a workaround to get the jQuery UI widget factory to be AMD compatible:
http://gregfranko.com/blog/registering-the-jqueryui-widget-factory-as-an-amd-module/

Efforts are underway to deliver an AMD compatible jQuery UI widget factory in an upcoming jQuery UI release.  This can be tracked via the URL:
https://github.com/jquery/jquery-ui/pull/1029
                
> Investigate using require.js to load widget sources
> ---------------------------------------------------
>
>                 Key: RF-13121
>                 URL: https://issues.jboss.org/browse/RF-13121
>             Project: RichFaces
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 5.0.0.Alpha1
>            Reporter: Lukáš Fryč
>
> require.js would allows us:
> * straight-forward dependency loading
> * ad-hoc script loading
> * modular minification (r.js) and dependency inspection

--
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



More information about the richfaces-issues mailing list