+ Start a Discussion
dke01dke01 

Apex Controller Event Life Cycle

Is there an event in a Controller that is fired after the setters and getters have been called.

 

I want to setup some data once the setters and getters have finished so I cannot use the constructor

 

is there like a   page_load, awake,  or sleep  event that other major Web Application frameworks support?

 

 

bob_buzzardbob_buzzard

Nothing that I'm aware of.

 

I'd normally use the onload handler for the page to invoke an action method once everything has been rendered (which means that all the getters/setters will have finished).

ahab1372ahab1372

maybe you can use the action atrribute of the page to call an action method (kind of similar to what Bob suggested).

dke01dke01

Thanks guys, I thought of doing that samething which would normally work. But in this case it is for a Component so there is not action method

 

THanks anyway for  the replies

 

Vote for my IDEA to fix this here: https://sites.secure.force.com/ideaexchange/ideaView?c=09a30000000D9xt&id=08730000000HMVf