Method called at page load time of jspx page

I am using the jdeveloper11.1.1.1.0 version.
is there any method that is called at page load time. in this method i need to apply the set where clause on view object and some more functionality i need to add here.in ADf life cycle , is there any method like init() ?
Sailaja

you would have implement PagePhaseListener and extend this from your backing bean class..
package view.controller;
import oracle.adf.controller.v2.context.PageLifecycleContext;
import oracle.adf.controller.v2.lifecycle.Lifecycle;
import oracle.adf.controller.v2.lifecycle.PagePhaseEvent;
import oracle.adf.controller.v2.lifecycle.PagePhaseListener;
import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.binding.BindingContainer;
public class CustomPagePhaseListener implements PagePhaseListener  {
     * Before the ADF page lifecycle's prepareModel phase, invoke a
     * custom onPageLoad() method. Subclasses override the onPageLoad()
     * to do something interesting during the
     * @param event
    public void beforePhase(PagePhaseEvent event) {
      PageLifecycleContext ctx = (PageLifecycleContext)event.getLifecycleContext();
      if (event.getPhaseId() == Lifecycle.PREPARE_MODEL_ID) {
        bc = ctx.getBindingContainer();
        onPageLoad();
        bc = null;
     * After the ADF page lifecycle's prepareRender phase, invoke a
     * custom onPagePreRender() method. Subclasses override the onPagePreRender()
     * to do something interesting during the
     * @param event
    public void afterPhase(PagePhaseEvent event) {
      PageLifecycleContext ctx = (PageLifecycleContext)event.getLifecycleContext();
      if (event.getPhaseId() == Lifecycle.PREPARE_RENDER_ID) {
        bc = ctx.getBindingContainer();
        onPagePreRender();
        bc = null;
    public void onPageLoad() {
      // Subclasses can override this.
    public void onPagePreRender() {
      // Subclasses can override this.
  }add your backing bean class as controllerClass in the corressponding pageDef <pageDefinition....> tag.
ControllerClass="#{backingBeanScope.backing_YourBackingBean}"
in your backing bean add pageload method like below and put your code (this method being called when the page loads...)
public void onPageLoad() {
Edited by: puthanampatti on Sep 30, 2009 2:33 PM

Similar Messages

  • Method call before visual web jsf page loads

    Hi All.....
    I have written a method in a java class that accesses the mysql backend db to check if a process is still running. If the process is still running, a JOptionPane is produced informing the user of this and offers an <ok> option(to check the process status again) and a <cancel> option(to redirect the user to the homepage). If the process is completed, I want the page to just load as normal. I want this method to be called before the visual web jsf page loads. I have the method call in the super_init() method of the page and everything seemed to be working fine, the problem I have run into is that if I set the value in the db to show the process is running, the JOptionPane is produced(like it should be), and then if I set the value to show the process has completed and choose <ok> from the pane, the page loads.....this is what I want. Now, after the page loads, if I set the value in the db to show the process is running again, the JOptionPane is produced again right after I apply the changes to the db edit!!!!. I don't know why this is happening. Should I be calling the method from somewhere other the super_init()????? I have tried the method call in the prerender(), preprocess(), and destroy() methods all with the same results.
    Anyone have any ideas on what the problem could be??
    Thanks in advance.
    Silgd

    The Java part of a JSP/Servlet based webapplication runs physically at the server machine.
    Only the HTML/CSS/JS part which is generated by the webapplication and sent to the client physically runs at the client machine.
    JOptionPane is a Java Swing component which thus runs at the server machine. So you as client would only see it when both the server and the client runs at physically the same machine. Which is often only the case in development environment and doesn´t occur in real life! There is normally means of two physically different machines connected through the network/internet.
    To solve your actual problem, look for Ajax poll techniques. To display an alert or confirm dialogue in the client side, you use Javascript for this.

  • How to call a method after a page  complete load

    Hi,
    Environment: JSF1.2.12+Spring
    I have a startpage, i will call a methode after startpage complete load. (I do not want to use javascript)
    How can i implement it.
    Edited by: zlzc2000 on Nov 6, 2009 2:53 AM

    goal: optimize load startpage(accelerate to load startpage)
    in startpage i use sql to load user's information, that in startpage is required.
    in other page i need the complete User Object (hibernate load user Object).
    i want to after dispay startpage load the user Object whith Hibernet.
    if during load startpage with hibernate to load user object, that is too slow.
    concept: 1step: with sql load user information (not full, for example: id, forename, surname,...)
    2step: results display( load startpage )
    3step: after load complete startpage, call method to load user object(it include all information of user )
    then the user object can be uesed in anywhere in the future.
    but i dont know how to impement it.
    Edited by: zlzc2000 on Nov 6, 2009 3:37 AM

  • ADF method call to fetch data from DB before the initiator page loads

    Hello everyone
    I'm developing an application using Oracle BPM 11.1.1.6.0 and JDeveloper 11.1.1.6.0
    I want to fetch some data from the database before the initiator task, so that when the user clicks on the process name, his/her history will be shown to them before proceeding.
    It was possible to have a service task before the initiator task in JDeveloper 11.1.1.5.0, but I have moved to 11.1.1.6.0 and it clearly mentions this to be an illegal way.
    I came across this thread which suggested to do this using an ADF method call, but I don't know how since I'm new to ADF.
    Re: Using Service Task Activity before Initiator Task issue
    Can anyone show me the way?
    Thanks in advance

    Thanks Sudipto
    I checked that article however I think I might be able to do what I want using ADF BC.
    See, what I'm trying to do is to get a record from a database and show it to the user on the initiator UI.
    I have been able to work with ADF BC and View Objects to get all the rows and show them to the user in a table.
    However, when I try to run the same query in the parameterized form to just return a single row, I hit a wall.
    In short, My problem is like this:
    I have an Application Module which has an entity object and a view object.
    My database is SQL Server 2008.
    when I try to create a new read only view object to return a single row I face the problem.
    The query I have in the query section of my View Object is like this:
    select *
    from dbo.Employee
    where EmployeeCode= 99which works fine.
    However when I define a bind variable, input_code for example, and change the query to the following it won't validate.
    select *
    from dbo.Employee
    where EmployeeCode= :input_codeIt just keeps saying incorrect syntax near ":" I don't know if this has to do with my DB not being Oracle or I'm doing something wrong.
    Can you help me with this problem please?
    thanks again
    bye

  • Adobe Edge Animate JavaScript Coding issues/page load time speeds

    To let you have an idea of my skill set I have a background in animation and design and have been taking classes in web development. My question is about how to create an interactive website that loads various animation depending on the user's choice and current place within the Adobe Edge Animate timeline. The website I developed for a client @ www.goshowpro.com works but loads slower than I want and doesn't format properly on my client's Macbook (I believe he needs to update his browsers but that is something else.)
    So as you can see from looking at my website I used a multitude of HTML files to create my vision of an interactive website based off of a theatrical stage. I know this is not an ideal method. I would prefer to have it all on one page but I am having trouble with my javascript coding. I was wondering if there would be away to expedite my current site's load time and if not if you could look at my NEW coding. (This IS NOT the current coding on the site.)
    if = "hstop" "chomstop" "shomstop" "phomstop"
    {sym.play("hporstart")};
    else = "hconstop" "sconstop" "pconstop"
    {sym.play("cporstart")};
    else = "hserstop" "cserstop" "pserstop"
    {sym.play("sporstart")};
    It looks crappy but I'm trying to learn so don't laugh too much. Thanks again.
    Michael

    Hi, Marlene-
    We currently bundle jQuery 1.7.1 with the Animate runtime.  In order to call fadeOut() on the element newSquare, you would do the following:
    sym.$("newSquare").fadeOut();
    OR
    sym.getSymbol("newSquare").getSymbolElement().fadeOut();
    Hope that helps!
    -Elaine

  • Bookmark method for a page is not getting called

    Hi,
    I am developing a simple ADF application which contains two jspx pages, in JDEVELOPER 11g (build JDEVADF_MAIN_GENERIC_080910.1420.5124).
    I have a commandLink in Page1 which takes me to the Page2.I have a bookmark method for Page2, which gets called when I load the page.
    When I access the Page2 directly,the corresponding bookmark method is getting called.But when I navigates it through commandLink provided in Page1,the bookmark method is not getting called.
    Page1.jspx:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document maximized="true">
    <af:form>
    <af:commandLink text="Go to Page2" action="page2" />
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Page2.jspx:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:bib="http://xmlns.oracle.com/dss/adf/faces">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document maximized="true">
    <af:form>
    <af:outputText value="This is Page2"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    adfc-config.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <view id="page1">
    <page>/page1.jspx</page>
    </view>
    <view id="page2">
    <page>/page2.jspx</page>
    <bookmark>
    <method>#{mBean.bookMarkMethod}</method>
    </bookmark>
    </view>
    <control-flow-rule>
    <from-activity-id>page1</from-activity-id>
    <control-flow-case>
    <from-outcome>page2</from-outcome>
    <to-activity-id>page2</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <managed-bean>
    <managed-bean-name>mBean</managed-bean-name>
    <managed-bean-class>view.ManagedBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    </adfc-config>
    ManagedBean.java:
    public class ManagedBean {
    public ManagedBean() {
    super();
    public void bookMarkMethod() {
    System.out.println("Inside bookmark method");
    Please look into this...........

    Hi Frank,
    I need to provide the af:commandLink inside af:table component and the values which I pass to page2 depends on the row I select at runtime.
    so,I am trying to use ad:setActionListener inside af:commandLink.
    If I use FacesContext.getCurrentInstance.getExternalContext.redirect() inside the actionListener of af:commandLink, I need to extract all the required values in the actionListener.
    Isn't there any way so that, I can pass the values using af:setActionListener inside af:commandLink and a method ( which will initialise the managed bean) will be called when page2 loads ???
    Regards,
    Lokesh.

  • Webservice call on page load

    Hi,
    I have an ADF application which uses webservices. I have two .jspx pages, one which calls the webservice 'pending contacts' on page load and displays the Pending contact list. The other page is for the new user registration, when I click on the register button on the Registration page it navigates back to the first page where the pending contacts needs to be loaded again with a new pending contact which doesn't happen. The new contact is displayed only when I re run the page.
    How do I refresh the page in the sense get the data from the database on navigation?
    Thanks,
    Sal

    Use a method call as the default activity of a bounded taskflow (not based on fragments since you use jspx).
    You can always navigate back to the default activty which in turn has control flow cases to the page.
    Working with Task Flow Activities - 11g Release 1 (11.1.1.6.0)

  • Setting components values in the ADF page load time

    Hi,
    We are trying to set the components labels dynamically, so each time the page is loaded we are loading the related labels from the database, instead of using the default database column names driven labels.
    We get the labels text okay from the database in the afterPhase method, but we do not have access to the output text UI items then, so a call scuh as this getOutputText1() will return null.
    We have also tried to use value binding for the output text, e.g. value=#{backing_untitled2.verbiage}, where verbiage attribute was set in the afterPhase method. The method is called okay and sets the attribute, but for some reason the attribute is then set back and displayed as null.
    The same code is executed okay in a command button.
    Any idea why is that failing, or how to populate these labels dynamically in the page load time better than the above?
    Thanks in advance
    Mohamed Elmallah

    Hi,
    I think you should re-think your strategy and not read the labels from the database all the time. Instead, read it into a class that extends HashMap one time and put it into the session. Then reference the bean #{sessionScope.beanname['label'], which will call the HashMap's getter method. Use the "label" name to find the label for the particular key
    If you r application becomes big, you may want to think of handling the session bean size through leaning it under specific conditions
    Frank

  • Issue with calling a  method activity before page render

    Hi All,
    I am using Jdeveloper 11.1.1.7.
    I am trying to achieve the approach defined in "1.b. Calling a Method in Backing Bean:" elaborated in the blog - https://blogs.oracle.com/adf/entry/an_epic_question_how_to
    As illustrated, I defined a default method activity (binding to a method in managed bean) and a view activity activity in a bounded task flow.
    When I launch the application (running the view activity), following error is encountered -
    oracle.adf.controller.metadata.ParsingException: ADFC-02020: Cannot find default activity 'check' in task flow definition '/WEB-INF/task-flow-definition.xml#task-flow-definition'.
        at oracle.adfinternal.controller.metadata.model.xml.XmlUtil.createAndLogParsingException(XmlUtil.java:474)
        at oracle.adfinternal.controller.metadata.model.xml.MetadataResourceXmlImpl.parseTaskFlowDefinition(MetadataResourceXmlImpl.java:507)
        at oracle.adfinternal.controller.metadata.model.xml.MetadataResourceXmlImpl.parse(MetadataResourceXmlImpl.java:361)
        at oracle.adfinternal.controller.metadata.provider.mds.MdsMetadataResourceProvider.parseResource(MdsMetadataResourceProvider.java:748)
        at oracle.adfinternal.controller.metadata.provider.mds.MdsMetadataResourceProvider.getMDSCachedResourceOrParse(MdsMetadataResourceProvider.java:732)
    Please advise.
    Best Regards,
    Ankit Gupta

    Hi Cvele, Timo,
    Many thanks for the suggestions.
    To avoid confusions, I have created a new application altogether. It seems that the method call is not being called when I run the page.
    For your reference I have attached the task flow definition and method code below -
    Task Flow Definition
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="task-flow-definition">
        <default-activity id="__1">methodCall1</default-activity>
        <managed-bean id="__11">
          <managed-bean-name id="__13">TestBean</managed-bean-name>
          <managed-bean-class id="__10">TestBean</managed-bean-class>
          <managed-bean-scope id="__12">request</managed-bean-scope>
        </managed-bean>
        <view id="view1">
          <page>/view1.jspx</page>
        </view>
        <view id="exception">
          <page>/exception.jspx</page>
        </view>
        <method-call id="methodCall1">
          <method>#{requestScope.TestBean.checkURL}</method>
          <return-value id="__15">#{TestBean.checkURL}</return-value>
          <outcome id="__14">
            <to-string/>
          </outcome>
        </method-call>
        <control-flow-rule id="__2">
          <from-activity-id id="__3">methodCall1</from-activity-id>
          <control-flow-case id="__5">
            <from-outcome id="__6">go</from-outcome>
            <to-activity-id id="__4">view1</to-activity-id>
          </control-flow-case>
          <control-flow-case id="__8">
            <from-outcome id="__9">error</from-outcome>
            <to-activity-id id="__7">exception</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
      </task-flow-definition>
    </adfc-config>
    Method Code
    public String checkURL() {
    // Add event code here...
    System.out.println("method activity called");
    return "error";
    Best Regards,
    Ankit Gupta

  • Action Listener Method called multiple times

    I have a page (fragment .jsff), containing a simple input text and a button called "search". When I click on "Search" the action listener is triggered multiple times. (The results are displayed in a table inside a panel collection).
    The results are actually coming back ok.
    When I debug the code, I can see the action listener method called twice.
    Do you know why is that?
    What should I be taking care of?
    This is my code :
    *** Fragment ****
    <af:commandButton text="#{identityBundle.search_label}" id="cb1"
    actionListener="#{UserDetailsBean.searchUsersListener}"
    disabled="#{!bindings.searchUsers.enabled}"/>
    *** Managed bean ***
    public void searchUsersListener(ActionEvent actionEvent) {
    // Add event code here...
    DCBindingContainer bindings = (DCBindingContainer)getBindings();
    DCIteratorBinding iter = bindings.findIteratorBinding("userIterator");
    DCDataRow row = (DCDataRow)iter.getCurrentRow();
    User user = (User)row.getDataProvider();
    boolean isSearchCriteriaPresent = false;
    if(user != null){
    String fn = user.getFirstname();
    if(fn != null && !fn.trim().equals("")){
    isSearchCriteriaPresent = true;
    user.setLastname(fn);
    user.setNonMTUserLogin(fn);
    try {
    Map <Object, Object> userMap = PropertyUtils.describe(user);
    for(Map.Entry<Object, Object> entry: userMap.entrySet()){
    if(entry.getKey() != null && entry.getValue() != null && !entry.getKey().toString().equalsIgnoreCase("class")){
    isSearchCriteriaPresent = true;
    break;
    } catch (IllegalAccessException e) {
    e.printStackTrace();
    } catch (InvocationTargetException e) {
    e.printStackTrace();
    } catch (NoSuchMethodException e) {
    e.printStackTrace();
    if(!isSearchCriteriaPresent){
    user.setFirstname("*");
    OperationBinding opBinding = (OperationBinding)bindings.getOperationBinding("searchUsers");
    opBinding.getParamsMap().put("user", user);
    opBinding.execute();
    AdfFacesContext adfFacesCtx = AdfFacesContext.getCurrentInstance();
    Map<String, Object> scopePageFlowScopeVar= adfFacesCtx.getPageFlowScope();
    scopePageFlowScopeVar.put("userSearchCriteria", user);
    ADFContext adfCtx = ADFContext.getCurrent();
    Map sessionScope = adfCtx.getSessionScope();
    sessionScope.put("userSearchCriteria", user);
    setUserSearchCriteria(user);
    if(selectedUserID != null){
    selectedUserID.setValue(null);
    RichTable table = getUserResultsTable();
    DCIteratorBinding searchUsersIterator = (DCIteratorBinding)bindings.get("searchUsersIterator");
    Row[] rows = searchUsersIterator.getAllRowsInRange();
    if(rows.length > 0){
    RowKeySetImpl rks = new RowKeySetImpl();
    ArrayList keyList = new ArrayList();
    keyList.add(rows[0].getKey());
    rks.add(keyList);
    table.setSelectedRowKeys(rks);
    table.setDisplayRowKey(keyList);
    refreshState(table);
    if(!isSearchCriteriaPresent){
    user.setFirstname(null);
    else{
    deleteUserButton.setDisabled(true);
    resetPasswordButton.setDisabled(true);
    enableUserButton.setDisabled(true);
    disableUserButton.setDisabled(true);
    Thanks in advance for your help

    Hi,
    Can you try this?
    1. set partialSubmit=true for the "search" button
    2. set "search" button id as partialTrigger in your result table
    -Prasad

  • Countdown Timer - Trigger method call

    Hello,
    I am using a coundtown timer, what i want is to call a method when the the time is reached.
    The method i want to call requires a String to be passed to it but i am unable to achieve this with my current code:
    package CarSystem;
    import java.util.Calendar;
    import java.text.DecimalFormat;
    import CarSystem.Server;
    import java.rmi.*;
    import java.sql.*;
    public class CarTimer {
      static Server server;
      String TimerCarID = new String();
    public String timer(String CarID) throws java.lang.Exception{
      TimerCarID = CarID;
      String str = getDate();//date-time with the pattern "yyyy-M-d-k-m"
    java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyy-M-d-k-m");
    java.util.Date date = formatter.parse(str);
    java.util.Timer timer = new java.util.Timer();
    long target = date.getTime();//target date-time in Milliseconds
    Task0 task = new Task0(target);
    timer.schedule(task,0L, 1000L);
      System.out.println("phase 1");
      return str;
        public String getDate()
            Calendar now = Calendar.getInstance();
            String date;
            int dateDay = now.get(Calendar.DATE);
            int dateMonth = now.get(Calendar.MONTH);
            dateMonth++;
            int dateYear = now.get(Calendar.YEAR);
            int timeMin = now.get(Calendar.MINUTE);
            int timeHour = now.get(Calendar.HOUR_OF_DAY);
            System.out.println(timeMin + " normal");
            timeMin ++; //ADD GIVEN TIME TO JUST RECIEVED TIME
            timeMin ++;
            timeMin ++;
            System.out.println(timeMin+ " plus 3 mins");
            DecimalFormat decFormatTime =
                                new DecimalFormat("0");
            String timeMinFormat = decFormatTime.format(timeMin);
            String dateDayFormat = decFormatTime.format(dateDay);
            String dateMonthFormat = decFormatTime.format(dateMonth);
            String timeHourFormat = decFormatTime.format(timeHour);
            date = (dateYear + "-" +dateMonthFormat + "-" + dateDayFormat +"-"+ timeHourFormat +"-"+ timeMinFormat);
            System.out.print(date + " here is the formatted one ");
                    return (date); //date-time with the pattern "yyyy-M-d-k-m"
      class Task0 extends java.util.TimerTask{
        long targ;
        Task0(long target)
        {// constructor
                     this.targ = target;
    private int n=Integer.MAX_VALUE;
    //run method..
    public void run(){
             System.out.println("remaining seconds:");
             n = (int)((this.targ - System.currentTimeMillis())/(1000L));
            System.out.println(String.valueOf(n));
            if(n<=0){
              try{
    \\THIS IS WHERE I HAVE BEEN TRYING TO CALL THE METHOD FROM (server.endCar(carID)
            this.cancel();
            // System.exit(0);
          }catch(java.lang.RuntimeException ex){throw ex;}
         }//end of if
    }From the run method though i am unable to reach server and the method endCar. Neither is the carID string available that was past to the timer and is needed to be returned.
    Can anyone offer me some advice on this??
    Thanks

    Hello,
    Thankyou for your advise,
    I moved the run method to inside the carTimer class and have made some good progress,
    I am however still unable to call the method?
    I now get the following error when the timer = 0 (when the method should be called)
    Exception in thread "Timer-1" java.lang.NullPointerException
         at CarSystem.CarTimer$Task0.run(CarTimer.java:80)
         at java.util.TimerThread.mainLoop(Timer.java:512)
         at java.util.TimerThread.run(Timer.java:462)(CarTimer.java:80) = server.EndCar(CarID);The method i am calling is from the server class is called EndCar and looks like this:
    package CarSystem;
    import java.util.*;
    import java.sql.SQLException;
    import java.sql.*;
    import java.rmi.RemoteException;
    //TIMER CLASS
    import CarSystem.CarTimer;
    public class Server extends java.rmi.server.UnicastRemoteObject
          implements Iserver{
        private Connection link;
        private Vector<Object> rows;
        static CarTimer carTimer;
        //Connect to Database
        public void dbConnect()
          try {
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            link = DriverManager.getConnection(
                "jdbc:odbc:CarDatabase", "", "");
          catch (ClassNotFoundException e) {
            System.out.println("* Unable to load driver! *");
            System.exit(1);
          catch (SQLException e) {
            System.out.println(
                "* Cannot connect to database! *");
            System.exit(1);
      public void EndCar(String CarID) throws ClassNotFoundException,
          SQLException, RemoteException {
         dbConnect();
         Statement statement = link.createStatement();
         statement.execute("UPDATE car SET carComplete = 1 WHERE carID = " + CarID);
    }Can anyone offer me any advice as to why this error is occuring?

  • Calculating Page Loading Time

    Hi Friends,
    I wouldlike to know how to calculate the page loading time after I click a button on a page. Assume that after clickiing the button, first a servelt is called, processing is done and after that a jsp will be thrown to browser. Now after completely loading the JSP page, I mean, status bar in the browser is clean and no globe is revolving at the top of the browser, I need to insert this page loading time into database.
    How can I do this using java technology.
    Plase throw some light on this . It is very urgent.
    Thanks & Regards,
    Murthy
    [email protected]

    Do you mean that you want something on your server to know how long it took the browser to load the page? There's no way to know that. After your server sends the data, that data can travel over a variety of communication networks and through a variety of network node computer buffers. Moreover, your page may have links (to images for example) that the browser will also load via separate requests.
    All you can tell is how long it took your server to produce and send the page.

  • Make an AM function execute only during page load time

    I have a function in the AM. I want to have it executed only during loading of the page. How can I achieve it.
    Message was edited by:
    mailsubhra

    Thanks a lot for the link.
    But my case is slightly different. I have a VO where I bind some variables. I run the first page and get some data. I am sending the fetched data from the first page to the second page using pageFlowScope.
    In the second page, I am binding a fucntion which will set the bind variables with some values (the values are the ones which are fetched from the first page using pageFlowScope). The VO is dropped as a table in the second page.
    So, to summarize, the situation is as follows:
    There is a VO which is dropped as a table in page2.jspx This VO has some bind variables. There is also an AM function which is bound to the page2.jspx and this function will set the bind variables using setNamedWhereClauseParam(...). The arguments to this function are passed from the pageFlowScope.
    Now there is a page1.jspx where I am able to select something and push the selected values to pageFlowScope.
    As I navigate from page1.jspx to page2.jspx, I want the VO in page2 to refresh according to the values chosen in page1. Hence I want the function to execute only when the page2 is loaded. If the function is not called during the rendering of page2.jspx, then the table becomes empty because the bind parameters in that VO are automatically set to null.

  • Page load time of portal

    What is the average page loading time of webcenter portal?

    2 to 5 content presenters on a single page is to much. You need to try to consolidate the content so you can minimize the number of content presenters on a page.
    Most of the time the problem is in the content model. Even complex content models can be put in a single data file by using lists and so on. This way you can minimize the CP's to one or two per page.
    When using coherence you should always set the expiry-delay for the ContentNodeCaches to 0 which means that coherence will never invalidate the cache!
    The reason behind this is that the connection to UCM implements a content sweeper which will invalidate the cache items that have been changed. In the Enterprise Manager you have the field "Cache Invalidation Interval". This will determine the interval in which a service from UCM is called to check which items have been updated. This will also notify coherence and update the nodes with the new version.
    That's why the expiry delay needs to set to 0 in coherence.
    Also set the high units to 80% of your entire repository that is used on the top pages. This can easily be 10000 without problem.
    I'm planning on writing a blog post about these configurations later on.
    The JOC configuration is OOTB but you need to run a script to enable it. It is recommended when you use WC Spaces.
    Information can be found here: http://docs.oracle.com/cd/E23943_01/core.1111/e12037/extend_wc.htm#CHDIFEJH

  • Page not found, slow loading times CC Files

    Hi,
    Two weeks ago I reported that there were CC files problems like 'page not found' errors and slow loading times and pages not even showing anything. Those problems were temporarily resolved but are back as of today.
    Please fix this because for me this is not workable and I guess for many others. I've already moved part of my design files away from CC Files and am now reaching the point were I want to abandon this beta-ware altogether.
    I'm living in Europe, maybe this gives additional info. Maybe server problems only in this continent?
    Thanks for looking into this.
    Jan

    So what product would you advice me to file this bug report under? There is no Creative Cloud Files entree or similar.
    I'm not sure I'm taken by Adobe support channels policies. if I tweet a complaint some employee tell me I'll be called back by support. Instead of being called back I get asked per email to report on the community forums, when I post on the forum someone tells me to file a bug report. Ehhh...
    Time to move on.
    Jan

Maybe you are looking for