为什么我的网页Xpages上出现多定义错误 [英] Why am I getting multipleDefine Error on my web Xpages

查看:62
本文介绍了为什么我的网页Xpages上出现多定义错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我的网页上出现dojo和query的多个Define错误?

Why do I get multipleDefine errors for dojo and query on my web pages?

我正在使用Bootstrap和KendoUI

I am using Bootstrap and KendoUI

认为问题是因为在我的主题中,我包括来自KendoUI的jQuery

I think the problem is because in my theme I include jQuery from KendoUI

<resource>
    <content-type>application/x-javascript</content-type>
    <href>/.ibmxspres/domino/KendoUI/js/jquery.min.js</href>
</resource>

<resource>
    <content-type>application/x-javascript</content-type>
    <href>/.ibmxspres/domino/KendoUI/js/kendo.all.min.js</href>
</resource>

这些可能与从中加载的css发生冲突Xpages引导程序.如果可以,该怎么办?

and these maybe colliding with the css being loaded from Xpages Bootstrap. If so, what can I do?

推荐答案

我也在使用Kendo UI.我有一个扩展Bootstrap3主题的主题,这给了我JQuery,所以我的主题中不需要JQuery的资源标签.

I am using Kendo UI also. I have a theme that extends the Bootstrap3 theme and this gives me JQuery so I don't need a resource tag for JQuery in my theme.

如果扩展Bootstrap3主题无法正常工作,请查看扩展库版本17中名为"Bootstrap3_blank"的新高级"主题.这将使您在包含的CSS上具有更大的灵活性.

If extending Bootstrap3 theme is not going to work for you have a look at the new "advanced" theme in version 17 of the extension library called "Bootstrap3_blank". This will allow you more flexibility on the css that is included.

有关Bootstrap3_blank主题的文档可在以下位置找到: https://wiki.openntf.org/display/EXTLIB/How+to+use+the+Bootstrap3_blank.theme+in+XPages

Documentation on the Bootstrap3_blank theme can be found here: https://wiki.openntf.org/display/EXTLIB/How+to+use+the+Bootstrap3_blank.theme+in+XPages

这篇关于为什么我的网页Xpages上出现多定义错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆