...
An element containing the list of components (e.g. MCOs, Macros, datasources or any element from any namespace) to be loaded for global use.
Configuration
Code Block |
---|
<globals> |
...
|
...
<mco/> |
...
<macro/>
</globals> |
...
Contains the list of shortcut key definitions to be loaded for use within the application.
Configuration
Code Block |
---|
<shortcutKeys> |
...
<shortcut key="F5" o
nCommand="PageManager.loadPage( 'dataIntegration' )" role="ROLE_ADMIN"/>
</shortcutKeys> |
...
<shortcutKeys>
An element containing the list of shortcut key definitions to be loaded for use within the application.
...
Configure the page to be used as the home page.
Configuration
Code Block |
---|
<homepageConfig> |
...
|
...
<homepage pageId="homepage" role=""/>
</homepageConfig> |
...
<homepageConfig>
Configure the page to be used as the home page.
...
The cache is configured as part of the Reference Frameowrk configuration file nexaweb-reference-framework.xml.
Code Block |
---|
<xalCache cacheSize="5"> |
...
<cacheSlot path="/XAL/include/IncludeTest.xal" keepInCache= |
...
"true"/> |
...
<cacheSlot path="/XAL/include/Frag1.xal"/> </xalCache> |
...
<xalCache>
The xalCache tag is required for configuring the cache. If the tag does not exist in the configuration file, then the cache will not be configured.
...
NOTE:
If the numbe of cache slots with keepInCache, matches or exceeds the size of the cache, then no new cache slots can be created. If the number of preload cache slots
with keep alive, exceed the size of the cache, then the files associated with the cache slots that do not get created will not be preloaded.
Configuration
The cache is configured as part of the Reference Frameowrk configuration file nexaweb-reference-framework.xml.
Code Block |
---|
<dataService> |
...
<encoding>xml</encoding> |
...
<encodeRequest>false</encodeRequest> |
...
<encodeResponse>true</encodeResponse>
</ |
...
dataService> |
<dataService>
The dataService tag allows for configuration of how data is passed from the client to the server Reference Framework’s ClientDataService, as well as how the data is returned to the client from the server.
...
Configuration
Code Block |
---|
<menuGroups> |
...
<menuGroup name="application" text=""> |
...
<item image="/images/menu_logout.png" name="logoutMenu" |
...
onCommand="SecurityManager.logout()" text="Log Out" tooltip="log out"/> |
...
</menuGroup>
</menuGroups> |
...
<menuGroups>
Configures the application menubar. Either a main menu or a child menu can bundle an action.
...
Configuration
...
Code Block |
---|
<commandbar> <button image="/images/bar_cancel.png" name="commandBar.bbClose" onCommand="PageManager.closePage()" tooltip="Close"/> |
...
<button image="/images/menu_refresh.png" name="commandBar.bbRefresh" role="ROLE_USER" tooltip="Refresh"/> |
...
<button image="/images/bar_print.png" name="commandBar.bbPrint"
tooltip="Print"/>
</commandbar> |
...
<commandbar>
Configures the application toolbar. each command button can bundle an action which is previously defined.
...
Specifies the text to be displayed in the tooltip for the button. This attribute is optional.
Configuration
Code Block |
---|
<statusPanels> |
...
<statusPanel horizontalAlignment="left" image="" name="statusBar.bar1" text="Hello, everybody!" width="80%"/> <statusPanel image="" name="statusBar.bar2" text="Ready" width="19%"/> </statusPanels> |
...
<statusPanels>
Configure the status bar on the home page.
...
The width of the status panel in pixels. For components managed by an active layout manager, setting this value will act as the preferred width.
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.
...