Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Configuration設定

 

Code Block
 <appEvents>
       <onAppInit>mco:sampleMco.onAppInit()</onAppInit>
       <onAppStartup>mco:sampleMco.onAppStartup()</onAppStartup>
 </appEvents>

 

<onAppInit>

The onAppInit element contains the handler for the onAppInit event. This is an optional element that must contain valid mco syntax.

The onAppInit event is fired after the configuration file has been read, but before the application UI is built. This provides a means for modifying the configuration of the application before it is rendered.

<onAppStartup>

The onAppStartup element contains the handler for the onAppStartup event. This is an optional element that must contain valid mco syntax.

The onAppStartup event is fired after the application UI has been built and after the home page has been loaded. If security is enabled, this event is fired after the user has been successfully logged in, and after the onLoginSucceeded event has fired. This provides a means for doing global initializations after the application has started.onAppInit 要素は onApplenit イベントのハンドラを含みます。これはオプション要素で、有効な mco 構文を含んでいます。

onAppInit イベントは、設定ファイルが読まれた後アプリケーション UI が構築される前に発火されます。これは表示される前にアプリケーションの設定を修正する手段を提供します。

<onAppStartup>

onAppStartup 要素は onAppStartup イベントのハンドラを含みます。これはオプション要素で有効な mco 構文を含んでいます。

onAppStartup イベントは、アプリケーション UI が構築され、ホームページがロードされた後発火します。セキュリティが有効化されている場合、このイベントはユーザーがログインに成功し、onLoginSucceeded イベントが発火された後、発火されます。これは、アプリケーション開始後、国際化をする手段を提供します。