2014-03-03 17 views
0

我正在尋找一個很好的教程來定製我的ADF Faces背景菜單。ADF Faces:如何使用Javascript和Managedbean自定義contextmenu?

在谷歌上花了一些時間後,我發現Adding close this/close others/close all to the UIShell

但它不是我所期望的。 enter image description here

的的ADF Faces文本菜單的樣子,如果你按下一個按鈕或鏈接鼠標右鍵,味道上面的圖片。我怎樣才能定製我的contextmenu像在下面的圖像瀏覽器像往常一樣在新標籤頁或窗口中打開鏈接? enter image description here

回答

0

退出簡單,我只是需要將下面的代碼添加到我的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 

在您指定的目的地屬性和值的動作沒有任何屬性值

相關問題