First of all see
http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI#HRequireJSandjQueryAPIs
. You should use jQuery through RequireJS or otherwise use the
'jQuery' variable as '$' is taken by Prototype.js .

I advise you to use RequireJS for the rest of your JavaScript
resources too. You can configure RequrieJS to specify where each
resource is. See [1] and [2] for instance. You should also take into
account using WebJars [3] as this will allow you to create an
extension that can be installed on any XWiki instance easily through
the Extension Manager (all dependencies being resolved and installed
automatically). Most of the well known JavaScript libraries are
available as a WebJar [4].

Hope this helps,
Marius

[1] 
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-panels/xwiki-platform-panels-ui/src/main/resources/PanelsCode/ApplicationsPanelConfigurationSheet.xml#L126
[2] 
https://github.com/xwiki-contrib/application-filemanager/blob/master/ui/src/main/resources/FileManagerCode/DriveSheet.xml#L571
[3] http://extensions.xwiki.org/xwiki/bin/view/Extension/WebJars+Integration
[4] http://www.webjars.org/

On Sat, Feb 14, 2015 at 10:53 AM, carlez <[email protected]> wrote:
> Hello! I'm trying to integrate bpmn-js into my xWiki application.
>
> I istalled bpmn-js via bower into xWiki resource folder and then i created a
> page with this content:
>
>
> When the page loads (and the javascript libs are imported) I get some errors
> about prototype.js and requirejs (http://pastie.org/9946255). How can I fix
> this problem??
>
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Integrate-bpmn-js-into-xWiki-tp7593969.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to