gpt4 book ai didi

java - 如何在Gatein导航中创建指向外部域的链接?

转载 作者:行者123 更新时间:2023-12-01 09:46:07 26 4
gpt4 key购买 nike

我正在尝试将一个项目添加到我的导航中,该项目将指向外部链接,例如 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)。为了在 3.8.x 上运行,我认为您需要使用不再基于 Tomcat 的 Wildfly,因此我们的很多代码将无法工作,因此我无法验证。

需要注意的是,MOP 层(持久性)具有此功能(org.gatein.mop.core.api.workspace.URLLink 与 org.gatein.mop.core.api.workspace.PageLink),但它没有扩展到eXo对象层

关于java - 如何在Gatein导航中创建指向外部域的链接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38015621/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com