Skip to Content

hook methods in component controller vs hook methods in view controller

Hi,

I want to know how WDDoInit in component controller differs from the same in view controller.

How the lifecycle flows in both controllers?

Eg. if i create a method intialize() in both component & view controllers and if i called initalize method in view, which one will be called?

Need to know how the flow works.

Regards,

Manoj


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    May 22, 2014 at 12:29 PM

    Dear Manoj,

    Please check if it is helpful.

    The order of execution of standard hook methods when a WDJ application is called the first time is as follows:

    1. Component Controller DoInIt()

    2. View Controller DoInIt()

    3. Interface Window Controller

    4. Component Controller DoBeforeNavigation()

    5. Component Controller DoModify()

    6. Component Controller DoPostProcessing()

    After this, if you navigate to some other view, then the order of execution of methods of that New view will be:

    1. Component Controller DoBeforeNavigation()

    2. New View DoInIt()

    3. New View onPlugfromFirstView

    4. Component Controller DoModify()

    5. Component Controller DoPostProcessing()

    Then, if you again navigate back to the first view, then the order of execution of methods is:

    1. Component Controller DoBeforeNavigation()

    2. New View onPlugfromNewView

    3. Component Controller DoModify()

    4. Component Controller DoPostProcessing()

    Thanks & Regards,

    Patralekha

    Add comment
    10|10000 characters needed characters exceeded

  • May 22, 2014 at 01:04 PM

    hi manoj,

    The wdDoinit() of component controller will be called first when application loads.

    Now you have specified that you have created intialize methods , in both controllers, so think

    view_intialize() in view controller and comp_intialize() in component , and in wddoInit() of view .....which method you are calling ?

    Regards

    Govardan


    Add comment
    10|10000 characters needed characters exceeded