Call multiple URLs on single click of af:goLink in Oracle ADF
来源:互联网 发布:淘宝安装工怎样 编辑:程序博客网 时间:2024/06/06 07:09
Hi,
Last week i experienced a challenging task to forcefully logout from UCM when user logouts from WebCenter application without using Single Sign-on solution.
Note that the application was Extended WebCenter Spaces 11g PS2 so there was no other alternate solution for current environment. i will cover the whole topic in different post sometime soon.
In this post i will cover a simple tip how to call multiple URLs on a single click of af:goLink component in Oracle ADF.
Solution:
I created a simple JavaScript function to call a URL
<af:resource type="javascript"> function LogoutFromUCM(){ hostname = window.location.hostname; document.location.href="http://"+ hostname + "/cs/logout.htm";</af:resource>
Later call that JavaScript method on af:goLink using af:clientListener
<af:goLink text="Logout" id="logoutLink" inlineStyle="white-space:nowrap" rendered="#{security.authenticated}" shortDesc="Click here to logout" destination="/adfAuthentication?logout=true&end_url=/webcenter/faces/custom/oracle/webcenter/webcenterapp/view/templates/LogoutPage.jspx"> <af:clientListener method="LogoutFromUCM" type="mouseUp"/></af:goLink>
The destination attribute of af:goLink is callinga logout for WebCenter application and method attribute inaf:clientListener is callinga JavaScript function to perform logout from UCM.
Using similar technique you can open any URL in a popup as well.
原文:http://baigsorcl.blogspot.com/2011/08/call-multiple-urls-on-single-click-of.html?spref=tw
- Call multiple URLs on single click of af:goLink in Oracle ADF
- multiple click in android
- Oracle ADF af:selectManyShuttle的使用
- ADF Single/Multiple files uploading and downloading
- Oracle ADF on JBoss
- Oracle adf af:table can not scroll page
- ADF Single/Multiple files uploading and downloading 在
- Adding a custom method in an ADF BC Service Interface – update of a single attribute in a selected r
- IIS configuration with support of multiple domain urls
- Multiple DataNodes on a single machine
- This extension will allow to show multiple product image when click on different color in product view page.
- Replacing Multiple Patterns in a Single Pass
- Interesting URLs in Oracle Application 11i.
- Change Image Style on Click in AngularJS
- How To Open Number Of Sites With A Single Click ?
- Display Multiple Images in Single Window in OpenCV
- Multiple ALVs on Single Screen Using ABAP Objects
- Multiple OCRs and vote disks on ASM in Oracle 11gR2
- 数据泵导入SKIP_CONSTRAINT_ERRORS的bug(三
- _crtBreakAlloc调试内存泄漏
- NYoj 249
- VS2005内存泄漏检测方法
- oracle常用命令
- Call multiple URLs on single click of af:goLink in Oracle ADF
- VC6.0图形处理6--图像增强
- 解决VS2008程序独立运行问题
- 内存管理内幕--Jonathan Bartlett (johnnyb@eskimo.com), 技术总监, New Media Worx--
- 判断页面上控件的值是否已经改变,如果发生改变,我们就需要对其做相关处理
- WORDS AND THEIR STORIES - A Wolf in Sheep's Clothing(披着羊皮的狼)
- PB中如何调试程序
- Eclipse默认标签TODO,XXX,FIXME和自定义标签
- 自己编译A13可用zImage,支持SD卡安装程序,完美安装愤怒的小鸟