Java Script Support In ADF

Posted by Vijay Mohan on Oracle Blogs See other posts from Oracle Blogs or by Vijay Mohan
Published on Tue, 01 Jun 2010 18:20:20 +0000 Indexed on 2010/06/01 18:34 UTC
Read the original article Hit count: 440

Filed under:
1. if you want the java script code in jspx.
   - <af:resource> tag available under adf faces ui component has the best supportability for java script. If you want to invoke the js function on some adf ui component then you will have to include a client listener tag with js function name and the event type.
If you want it to happen on a non adf html based compoent then you can have an anchor tag  specified with the javascript tag , event type and js function name (with parameters - if any) and as soon as the specifed action happens on that component then the js function would be invoked.

2.if you want it in adf page fragment (jsff)
  - jsff supports java script wrapped under <trh:script> </trh:script> tag. Rest of the things follow the same way as that of jspx.

© Oracle Blogs or respective owner