UPD: the obvious workaround is downloading it locally and contributing to
ModuleManager:

    @Contribute(ModuleManager.*class*)

    *public* *static* *void* contributeModuleConfigiration (
MappedConfiguration<String, Object> configuration,

            @Path("context:js/facebook/sdk.js") Resource facebookSdk ) {


        configuration.add ( "facebook", *new* JavaScriptModuleConfiguration
( facebookSdk ).exports ( "FB" ) );

    }

However that doesn't look like an elegant solution either. Are there any
other options?


On Sat, Apr 9, 2016 at 3:05 PM, Ilya Obshadko <xf...@xfyre.com> wrote:

> Facebook recommends the following method to integrate FB SDK using AMD
> approach:
> https://developers.facebook.com/docs/javascript/howto/requirejs/v2.5
>
> However I can't find any obvious way to configure RequireJS paths in
> Tapestry.
>
> Is there any way to do it?
>
> --
> Ilya Obshadko
>
>
>
>


-- 
Ilya Obshadko

Reply via email to