ADF Faces:如何使用Javascript和Managedbean定制contextmenu?

ADF Faces:如何使用Javascript和Managedbean定制contextmenu?,javascript,jsf,oracle-adf,Javascript,Jsf,Oracle Adf,我正在寻找一个很好的教程来定制我的ADF Faces contextmenu 在谷歌上花了一些时间后,我发现 但这并不是我所期望的。 如果在按钮或链接上按鼠标右键,ADF Faces Contextmenu看起来像上图。如何自定义我的contextmenu,以便像下图一样在浏览器上的新选项卡或窗口中打开链接? 退出simple我只需要将以下代码添加到我的web.xml以启用设置 <context-param> <param-name>oracle.adf.vie

我正在寻找一个很好的教程来定制我的ADF Faces contextmenu

在谷歌上花了一些时间后,我发现

但这并不是我所期望的。

如果在按钮或链接上按鼠标右键,ADF Faces Contextmenu看起来像上图。如何自定义我的contextmenu,以便像下图一样在浏览器上的新选项卡或窗口中打开链接?

退出simple我只需要将以下代码添加到我的web.xml以启用设置

<context-param>
    <param-name>oracle.adf.view.rich.ACTION_LINK_BROWSER_CONTEXT_SUPPRESSION</param-name>
    <param-value>no</param-value>
</context-param>
无法为指定目标且未调用操作的组件配置此行为。这些组件的示例包括:

af:commandLink

af:commandImageLink

af:commandMenuItem (stand-alone or within an af:menuBar component)

af:commandNavigationItem if no value is specified for the destination attribute, the ADF Faces framework enables the browser context menu in the following scenarios:

For the two anchors that af:commandNavigationItem renders when inside an af:train component

When an af:commandNavigationItem renders inside an af:breadCrumbs component

When an af:commandNavigationItem renders inside an af:navigationPane component (any hint--tabs, bar, buttons, choice, list)

af:panelTabbed: the tabs and overflow indicators

af:panelAccordion: the disclosure link and overflow indicators
af:goLink

af:goImageLink

af:commandNavigationItem
其中,为目标属性指定值,而不为操作属性指定值