view - XPage

Defines the top-level container control, that is, the XPage itself.

Category

None

Syntax

<xp:view xmlns:xp="http://www.ibm.com/xsp/core" attributes>content</xp:view>
Table 1. All properties
Category Properties
basics attrs, binding, createForm, defaultLinkTarget, dir, id, loaded, navigationRules, pageBaseUrl, pageIcon, pageManifest, pageTitle, rendered, rendererType, resources, viewState
data acl, data, dataContexts, enableModifiedFlag, modifiedControl, modifiedMessage, properties, readonly
dojo dojoForm, dojoParseOnLoad, dojoTheme
events afterPageLoad, afterRenderResponse, afterRestoreView, beforePageLoad, beforeRenderResponse, onClientLoad
styling disableTheme, style, styleClass, themeId

All properties

Usage

At run time, the page properties are applied when the page is loaded.

In Design mode, place focus outside all controls on the page to see the page properties.

Examples

This XPage defines a data source, and contains an edit box and a button.
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
	<xp:this.data>
		<xp:dominoDocument var="document1" formName="form1"></xp:dominoDocument>
	</xp:this.data>
	<xp:inputText id="inputText1"
		value="#{document1.subject}" style="font-weight:bold">
	</xp:inputText>
	<xp:button value="submit" id="button1" 	style="font-weight:bold">
		<xp:eventHandler event="onclick"
			submit="true" refreshMode="complete" immediate="false" save="true">
		</xp:eventHandler>
	</xp:button>
</xp:view>