Hi OAF gurus,
I have a requirement of Calling a java script function at each OAF page renders or Loads.
I.e. when any OAF page loads or render in Oracle e-biz i have a java script function which needs to be called Is there any way to implement the above mentioned requirement.
Thanks for your reply...
Actually I need to call a java script function for all the OAF pages in oracle ebiz.. i.e. in ebiz if any OAF page opens the java script function should be called as this java script function interm calling an URL that validate the session and communiting with other application. So for all the pages i need to call that java script function.
you got the exact requirment..
Hi all is it possible to do so..can any one please help on this, i need this urgently please... any help please...
From OAF classes java doc:
A class for processing and rendering HTML pages, designed to be invoked from either a JSP page or a servlet.
Allows you to:
Validate a user's session and redirect to a login page.
Set the servlet Response content type to the correct character set as defined by the ICX_CLIENT_IANA_ENCODING profile. (The character set should NOT be set in the JSP page ContentType declaration.)
Parse a HTTP Request and initialize BC4J application modules and view objects. (For HTML post, apply the content of the submitted form parameters to view objects.) Render a HTML page header and body
It has 2 metods:
public void renderDocument()
Renders the HTML document. This is the most common API invoked by JSPs or servlets, and is used to render both the HTML header and body.
public void renderBody()
Renders the HTML body only.
When OA page rendered, your code would be added to avery page, i think
Actually there are several applications talking to eBiz and they are having separate time out options for those applicaitons.
Now while accessing ebiz through some other system it is mandatory to check whether the eBiz session is active or not.
So invoking that java script intern calls an URL through which the session liveness is checked.
Not hacking :-)
This is to implement security in the applications whicle integrating different systems with eBiz:-)