【问题标题】:ADF Faces: How to customize contextmenu with Javascript and Managedbean?ADF Faces:如何使用 Javascript 和 Managedbean 自定义上下文菜单?
【发布时间】:2014-03-03 16:05:08
【问题描述】:
【问题讨论】:
标签:
javascript
jsf
oracle-adf
【解决方案1】:
简单我只需将以下代码添加到我的 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
为目标属性指定一个值,而没有为操作属性指定值