[英]ADF Faces: How to customize contextmenu with Javascript and Managedbean?
我正在寻找一个好的教程来自定义ADF Faces上下文菜单。
在Google上花费了一些时间后,我发现“ 关闭” /“关闭其他” /“全部关闭”到UIShell 。
但这不是我所期望的。
如果在按钮或链接上按鼠标右键,则ADF Faces上下文菜单的外观如上图所示。 如何自定义上下文菜单,以在浏览器中像往常一样在新选项卡或窗口中打开链接,如下图所示?
退出很简单,我只需要在我的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
您在其中指定目标属性的值,而没有为动作属性指定值
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.