# Order for calling activate() and other methods?

**URL:** <https://techcommunity.softwareag.com/t/order-for-calling-activate-and-other-methods/57410>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [June 30, 2006, 2:52pm UTC](https://techcommunity.softwareag.com/t/order-for-calling-activate-and-other-methods/57410 "2006-06-30T14:52:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjo](https://avatars.discourse-cdn.com/v4/letter/h/e0b2c6/32.png) [@hjo](https://techcommunity.softwareag.com/u/hjo)\
**Post date:** [June 30, 2006, 2:52pm UTC](https://techcommunity.softwareag.com/t/order-for-calling-activate-and-other-methods/57410/1 "2006-06-30T14:52:33Z")

</div>

Hi,

is there an order defined when the methods activate() and that of the button are called?

Concretely:  
There are 3 methods in my adapter:

1. activate(String, String, String). Here, I check a flag
2. doSomething(). This method is called by a button and invokes either changeFlag() directly or opens a new popup which invokes changeFlag(), too.
3. changeFlag(). This method sets a flag and opens a new popup.

The normal behaviour is that doSomething() calls directly changeFlag(), a new popup appears and after closing that, activate() is invoked so that I can check and reset the flag.

But if I open also a popup in doSomething(), activate() is called after opening the new popup in changeFlag() and not - as normal - after closing this new popup of changeFlag().

I have to do it in this way (in my opinion) because the popup in changeFlag() must forward to a servlet and afterwards, this servlet redirect to a new CIS instance (calls startCISPage…). That’s why the adapter after my servlet can not know the previous adapter with the 3 described methods…

Perhaps, there exists another solution and someone could tell me…

Thanks in advance for any advice…

H. Johannes

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/order-for-calling-activate-and-other-methods/57410/2 "2021-04-02T14:38:37Z")

</div>


