Skip to main content link. Accesskey S

XPages Wiki

Submit Search

YouAtNotes XPages Wiki


Home > Server JavaScript > Work with events

Work with events

ShowTable of Contents
In short, the events of a XPage with two custom controls (controlA and controlB) are executed in the following order:

events executed once



  • Xpage -> beforePageLoad


  • controlA -> beforePageLoad


  • controlA -> afterPageLoad


  • controlB -> beforePageLoad


  • controlB -> afterPageLoad


  • Xpage -> afterPageLoad


events executed on a full or partial refresh



  • Xpage -> afterRestoreView


  • controlA -> afterRestoreView


  • controlB -> afterRestoreView


events executed sometimes on a full or partial refresh



  • Xpage -> beforeRenderResponse


  • controlA -> beforeRenderResponse


  • controlB -> beforeRenderResponse


  • Xpage -> afterRenderResponse


  • controlA -> afterRenderResponse


  • controlB -> afterRenderResponse


tipps


Place code to execute once when the page is initially loaded to PageLoad.
Place code to execute on every refresh to afterRestoreView.
Note that the afterPageLoad event of the XPage is executed AFTER all component's afterPageLoad events.

Taken from Peter Presnell - thanks!

using event object


In the event handler, you can use the following:

this.getParent().getValue() returns the value of the event's component.
this.getParent() returns the event's component.
this returns the event handler object.
See what's possible with Xpages.
Have a look at our ServiceCommunicator website
and the YouAtNotes Support.
Use  searchlotus.com  for news in the Web related to Lotus Notes and Domino,
and to search those sites.
Check  youatnotes.com  for great Lotus Notes, Domino and XPages software.
Did this wiki help you?
Did this saved you time? Express your gratitude by making a donation:
PayPal - The safer, easier way to pay online!