Xpages 移动控件在浏览器上不可见
Xpages mobile controls not visible on browser
我对 xpages 的移动控件非常陌生,根据文档,我更改了 "Xsp Properties page" 中的设置,选中了复选框 "use mobile theme for Xpages with prefix: _m"。
然后进入源选项卡,状态为
xsp.ajax.renderwholetree=false
xsp.error.page.default=true
xsp.library.depends=com.ibm.xsp.extlib.library,com.ibm.xsp.extlibx.library
xsp.persistence.mode=file
xsp.resources.aggregate=true
xsp.theme=oneuiv2.1
xsp.theme.mobile.pagePrefix=m_
然后我在使用移动控件的测试xpages中说明了测试页面的代码是
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xe="http://www.ibm.com/xsp/coreex">
<xe:singlePageApp id="singlePageApp1"
selectedPageName="topicList">
<xe:appPage id="appPage2" pageName="topicList">
<xe:dataView id="dataView1">
<xe:this.data>
<xp:dominoView var="view1" viewName="topic"></xp:dominoView>
</xe:this.data>
<xe:this.summaryColumn>
<xe:viewSummaryColumn columnName="subject"></xe:viewSummaryColumn>
</xe:this.summaryColumn>
<xe:this.extraColumns>
<xe:viewExtraColumn columnName="MainContent"></xe:viewExtraColumn>
<xe:viewExtraColumn></xe:viewExtraColumn>
</xe:this.extraColumns>
</xe:dataView>
<xe:djxmHeading id="djxmHeading1" label="Topics"></xe:djxmHeading></xe:appPage>
<xe:appPage id="appPage1" pageName="topicDetails">
<xe:djxmHeading id="djxmHeading2" label="Details"
back="Back" moveTo="topicList">
</xe:djxmHeading></xe:appPage>
</xe:singlePageApp>
</xp:view>
设计器中没有显示任何错误,当我尝试在 Safari 浏览器或任何浏览器中查看结果时,它 returns 是一个空白页面。
我没有得到我所缺少的东西,以及为什么我无法在浏览器中看到页面布局。
任何建议都会对我有所帮助,
我看到的结果是
编辑 2:error 陷入控制台
移动控件专门用于移动设备上的浏览器。 XPages 运行时可以识别请求页面的设备并相应地使用控件。所以它们不太可能为桌面浏览器呈现。
使用用户代理切换器测试桌面浏览器中的移动控件。但是,请记住,这并不能保证与相应移动设备的浏览器完全一致。
最好的猜测是您没有在 XPage 的名称中包含 "m_" 前缀。您将 XPage 称为什么?它应该类似于 m_thexpage
,因此 XPages 运行时会看到 m_
前缀并知道使用移动主题呈现页面。如果完全空白,也表明视图中没有文档。
来自以下评论:
Server version is 8.5 and the extension library is 9.0 – Ajit Hogade
恐怕您无法在 8.5 服务器上安装 9.0 extlib。 9.0 extlib 依赖于 9.0 xpages 运行时的功能。要使用 9.0 extlib,您需要升级您的 domino 服务器以匹配。这就解释了为什么移动设备不适合您。
finally i found the error in browser console which image i have uploaded in new the edit. Agree with the comment about the version difference,but as far, I am using this I found no problem with the extension library controls with works perfectly fine in the browser, the only issue I had with mobile controls. – Ajit Hogade 7 mins ago
你很幸运没有遇到其他问题。 9.0 ExtLib 期望有 Dojo 1.8.1,它是 9.0 domino 服务器的一部分。 8.5 domino 服务器有一个更旧的版本,8.5.3 = dojo 1.6.1
、8.5.2 = dojo 1.4.3
。移动控件严重依赖dojo,因此版本不匹配无疑是问题的根源,由您在浏览器控制台中发现的错误说明。
我对 xpages 的移动控件非常陌生,根据文档,我更改了 "Xsp Properties page" 中的设置,选中了复选框 "use mobile theme for Xpages with prefix: _m"。 然后进入源选项卡,状态为
xsp.ajax.renderwholetree=false
xsp.error.page.default=true
xsp.library.depends=com.ibm.xsp.extlib.library,com.ibm.xsp.extlibx.library
xsp.persistence.mode=file
xsp.resources.aggregate=true
xsp.theme=oneuiv2.1
xsp.theme.mobile.pagePrefix=m_
然后我在使用移动控件的测试xpages中说明了测试页面的代码是
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xe="http://www.ibm.com/xsp/coreex">
<xe:singlePageApp id="singlePageApp1"
selectedPageName="topicList">
<xe:appPage id="appPage2" pageName="topicList">
<xe:dataView id="dataView1">
<xe:this.data>
<xp:dominoView var="view1" viewName="topic"></xp:dominoView>
</xe:this.data>
<xe:this.summaryColumn>
<xe:viewSummaryColumn columnName="subject"></xe:viewSummaryColumn>
</xe:this.summaryColumn>
<xe:this.extraColumns>
<xe:viewExtraColumn columnName="MainContent"></xe:viewExtraColumn>
<xe:viewExtraColumn></xe:viewExtraColumn>
</xe:this.extraColumns>
</xe:dataView>
<xe:djxmHeading id="djxmHeading1" label="Topics"></xe:djxmHeading></xe:appPage>
<xe:appPage id="appPage1" pageName="topicDetails">
<xe:djxmHeading id="djxmHeading2" label="Details"
back="Back" moveTo="topicList">
</xe:djxmHeading></xe:appPage>
</xe:singlePageApp>
</xp:view>
设计器中没有显示任何错误,当我尝试在 Safari 浏览器或任何浏览器中查看结果时,它 returns 是一个空白页面。 我没有得到我所缺少的东西,以及为什么我无法在浏览器中看到页面布局。
任何建议都会对我有所帮助,
我看到的结果是
编辑 2:error 陷入控制台
移动控件专门用于移动设备上的浏览器。 XPages 运行时可以识别请求页面的设备并相应地使用控件。所以它们不太可能为桌面浏览器呈现。
使用用户代理切换器测试桌面浏览器中的移动控件。但是,请记住,这并不能保证与相应移动设备的浏览器完全一致。
最好的猜测是您没有在 XPage 的名称中包含 "m_" 前缀。您将 XPage 称为什么?它应该类似于 m_thexpage
,因此 XPages 运行时会看到 m_
前缀并知道使用移动主题呈现页面。如果完全空白,也表明视图中没有文档。
来自以下评论:
Server version is 8.5 and the extension library is 9.0 – Ajit Hogade
恐怕您无法在 8.5 服务器上安装 9.0 extlib。 9.0 extlib 依赖于 9.0 xpages 运行时的功能。要使用 9.0 extlib,您需要升级您的 domino 服务器以匹配。这就解释了为什么移动设备不适合您。
finally i found the error in browser console which image i have uploaded in new the edit. Agree with the comment about the version difference,but as far, I am using this I found no problem with the extension library controls with works perfectly fine in the browser, the only issue I had with mobile controls. – Ajit Hogade 7 mins ago
你很幸运没有遇到其他问题。 9.0 ExtLib 期望有 Dojo 1.8.1,它是 9.0 domino 服务器的一部分。 8.5 domino 服务器有一个更旧的版本,8.5.3 = dojo 1.6.1
、8.5.2 = dojo 1.4.3
。移动控件严重依赖dojo,因此版本不匹配无疑是问题的根源,由您在浏览器控制台中发现的错误说明。