Gatein导航如何创建link到外域?
How to create link to external domain in Gatein navigation?
我正在尝试向我的导航中添加一个指向外部 link(例如 http://www.google.com)的项目,但我找不到任何关于如何操作的文档。
这是我如何管理导航的示例,我使用 navigation.xml 文件:
<?xml version="1.0" encoding="UTF-8"?>
<node-navigation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_4 http://www.gatein.org/xml/ns/gatein_objects_1_4"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_4">
<priority>1</priority>
<page-nodes>
<node>
<name>WebFileHome</name>
<label>WebFile User Resources</label>
<page-reference>111::222::aaa</page-reference>
</node>
<!-- My WebFile Tools - Law Firm -->
<node>
<name>MyWebFileTools</name>
<label>My WebFile Tools</label>
<page-reference>111::222::bbb</page-reference>
<node>
<name>UserAdmin</name>
<label>User Administration</label>
<page-reference>111::222::ccc</page-reference>
</node>
<node>
<name>Claim</name>
<label>Claim Summary</label>
<visibility>HIDDEN</visibility>
<page-reference>111::222::ddd</page-reference>
</node>
</node>
</page-nodes>
</node-navigation>
根据您的 Gatein 版本,这确实不可能...我自己 运行 遇到过同样的情况。它曾经可以通过 "uri" 元素 (https://docs.jboss.org/gatein/portal/3.1.0-FINAL/reference-guide/en-US/html_single/#sect-Reference_Guide-Tips-Direct_External_Links),但我认为他们在早期版本中放弃了此功能(我认为是 3.2.x)。
我认为在更高版本 (3.8.x) 中重新引入了另一种处理用例的方法,但我们尚未升级到该版本(我们在 3.7.1 上)。为了 运行 on 3.8.x 我认为你需要使用不再基于 Tomcat 的 Wildfly 所以我们的很多代码都不起作用所以我无法验证.
请注意,MOP 层(持久性)具有此功能(org.gatein.mop.core.api.workspace.URLLink vs org.gatein.mop.core.api.workspace.PageLink)但它没有扩展到 eXo 对象层
我正在尝试向我的导航中添加一个指向外部 link(例如 http://www.google.com)的项目,但我找不到任何关于如何操作的文档。
这是我如何管理导航的示例,我使用 navigation.xml 文件:
<?xml version="1.0" encoding="UTF-8"?>
<node-navigation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_4 http://www.gatein.org/xml/ns/gatein_objects_1_4"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_4">
<priority>1</priority>
<page-nodes>
<node>
<name>WebFileHome</name>
<label>WebFile User Resources</label>
<page-reference>111::222::aaa</page-reference>
</node>
<!-- My WebFile Tools - Law Firm -->
<node>
<name>MyWebFileTools</name>
<label>My WebFile Tools</label>
<page-reference>111::222::bbb</page-reference>
<node>
<name>UserAdmin</name>
<label>User Administration</label>
<page-reference>111::222::ccc</page-reference>
</node>
<node>
<name>Claim</name>
<label>Claim Summary</label>
<visibility>HIDDEN</visibility>
<page-reference>111::222::ddd</page-reference>
</node>
</node>
</page-nodes>
</node-navigation>
根据您的 Gatein 版本,这确实不可能...我自己 运行 遇到过同样的情况。它曾经可以通过 "uri" 元素 (https://docs.jboss.org/gatein/portal/3.1.0-FINAL/reference-guide/en-US/html_single/#sect-Reference_Guide-Tips-Direct_External_Links),但我认为他们在早期版本中放弃了此功能(我认为是 3.2.x)。
我认为在更高版本 (3.8.x) 中重新引入了另一种处理用例的方法,但我们尚未升级到该版本(我们在 3.7.1 上)。为了 运行 on 3.8.x 我认为你需要使用不再基于 Tomcat 的 Wildfly 所以我们的很多代码都不起作用所以我无法验证.
请注意,MOP 层(持久性)具有此功能(org.gatein.mop.core.api.workspace.URLLink vs org.gatein.mop.core.api.workspace.PageLink)但它没有扩展到 eXo 对象层