ADF Code Corner: How-to pass additional arguments to a ... - Oracle
Recommend Documents
Dec 1, 2010 - http://www.oracle.com/technetwork/developer-tools/adf/learnmore/ ... http://www.mhprofessional.com/product
Jan 12, 2012 - Oracle ADF Code Corner is a loose blog-style series of how-to documents that provide solutions to real wo
Jan 26, 2012 - value options for the outcome element are printable and email. As the value of the outcome ... return "&l
Mar 18, 2013 - Oracle ADF Code Corner is a loose blog-style series of how-to .... http://www.oracle.com/technetwork/deve
Dec 4, 2012 - Abstract: The two use cases for the af:popup are to show content for edit or for ... upon opening (Content
Mar 4, 2013 - HTML and JavaScript, which means that what you see on your mobile ... when property changes check box (sho
Sep 30, 2012 - ADFcg - Stands for âApplication Development Framework Code ..... not access application modules as this
Jun 30, 2011 - How-to change the WS connection for a WS DC. Using the Web Service Data Control (WS DC) to access a remot
Oct 30, 2010 - and adoption of the Oracle Application Development. Framework .... 17. Why? ADF BC bound table references
Mar 30, 2012 - command button then no JavaScript would be needed at all and JavaScript rule #1 would apply. On the serve
Jun 30, 2011 - The Oracle JDeveloper forum is in the Top 5 of the most ..... Page 10 ..... JDeveloper 11g and for web designers that are tasked with building a ...
Feb 29, 2012 - and adoption of the Oracle Application Development. Framework .... ADF skinning applies style sheet defin
Oct 30, 2010 - How-to add ADF binding based auto suggest behavior . ..... Option 1 â Delete the table row from Java an
Aug 22, 2012 - In a previous article, "How-to drag-and-drop data from an af:table to ... drag and drop to other layout c
Apr 30, 2012 - and adoption of the Oracle Application Development. Framework ... Which option to choose for accessing We
Aug 30, 2011 - individuals in the community, their company background, ..... known as search engine optimization (SEO),
correction to the McGraw Hill "Oracle Developer Guide" by Frank Nimphius and Lynn .... http://www.mhprofessional.com/pro
Apr 30, 2012 - The user data map can be accessed from Java for read and write by ..... You can now drag the method from
Mar 30, 2012 - limitation in that they cannot be embedded as a region on a page but require the ... If the related Optim
Aug 30, 2011 - New OTN Harvest Feature: OTN Harvest Spotlight. The ADF community is growing at an exponential rate. New
May 30, 2012 - in the WLS integrated LDAP server. ... http://www.oracle.com/technetwork/developer-tools/jdev/ ... simpli
Feb 29, 2012 - and adoption of the Oracle Application Development. Framework .... ADF skinning applies style sheet defin
Aug 30, 2011 - No support can be given through Oracle customer support. Please post questions or report problems related
Feb 8, 2011 ... like Java Applets and jQuery. This article explains how to establish bi-directional
communication between a Java. Applet and an ADF Faces ...
ADF Code Corner: How-to pass additional arguments to a ... - Oracle
22 Jul 2008 ... How-to pass additional arguments to a. JavaScript function using the af:
clientAttribute element. Abstract: In JDeveloper 11, JavaScript events ...
ADF Code Corner 034. How-to pass additional arguments to a JavaScript function using the af:clientAttribute element Abstract: In JDeveloper 11, JavaScript events like onClick, onFocus etc. are handled through the ADF Faces RC client framework using the af:clientListener component. The signature of the af:clientListener is defined such that the developer provides the name of a method to call and the JavaScript event to trigger this method call. The clientListener signature however doesn't foresee a mechanism
for
the
developer
to
pass
additional
arguments - like a rowKey - to the JavaScript method. Here client attributes come to the rescue.
twitter.com/adfcodecorner Author:
Frank Nimphius, Oracle Corporation twitter.com/fnimphiu 22-JUL-2008
How-to pass additional arguments to a JavaScript function ADF CODE CORNER using the af:clientAttribute element
Oracle ADF Code Corner is a loose blog-style series of how-to documents that provide solutions to real world coding problems. Disclaimer: All samples are provided as is with no guarantee for future upgrades or error correction. No support can be given through Oracle customer support. Please post questions or report problems related to the samples in this series on the OTN forum for Oracle JDeveloper: http://forums.oracle.com/forums/forum.jspa?forumID=83
Introduction A usecase in which a client side JavaScript needs to know about the rowKey of the component instance that triggered the event is for example a new browser window that needs to be opened using the window.open() command, addressing a URL of a taskflow within isolated transaction mode. This would then allow developers to implement context menus that operate similar to the open in new Tab command in the FireFox, Safari and IE browsers. Since the JavaScript function in ADF Faces RC cannot take a second argument in a call from af:clientListener, the rowkey value needs to be passed differently.
Passing the rowKey to a JavaScript function If you can't pass the additional information with the request, then you need to piggyback on an object that gets passed implicit. The implicit object that is passed by ADF Faces RC with the event is the source object of the request origin. So if the call is issued from an output text component, then the output text component is made available to the JavaScript function. If the event originating component is available to JavaScript then all its properties are available true, at least those that are not suppressed by the client framework for security reasons (Secure Ajax is more important than exposing "all you can eat" to the javaScript developer). Using the af:clientAttribute element, the existing properties of a component can be extended by custom properties - like "rowKey". 01.