我试图在我的导航中添加一个指向外部链接(如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>发布于 2016-06-24 20:40:18
取决于你的Gatein版本,这真的是不可能的.我自己也遇到过同样的情况。过去使用"uri“元素(Links)是可能的,但我认为他们在早期版本(我认为是3.2.x)中放弃了这个特性。
我认为处理用例的另一种方法是在以后的版本(3.8.x)中重新引入,但是我们还没有升级到那个版本(我们在3.7.1上)。为了在3.8.x上运行,我认为您需要使用Wildfly,它不再基于Tomcat,所以我们的许多代码无法工作,所以我无法验证。
请注意,MOP层(持久性)具有此功能(org.gatein.mop.core.api.workspace.URLLink vs org.gatein.mop.core.api.workspace.PageLink),但未扩展到eXo对象层。
https://stackoverflow.com/questions/38015621
复制相似问题