text - 計算結果フィールド

値を表示します。

カテゴリ

コアコントロール

構文

<xp:text attributes>content</xp:text>
表 1. 必須プロパティ
プロパティ 説明
id デフォルトは computedField1computedField2 などです。
value 計算結果フィールドをデータ要素またはその他の値にバインドします。
表 2. すべてのプロパティ
カテゴリ プロパティ
アクセシビリティ roletitle
basics attrsbindingdirescapeforhtmlFilteridlangloadedrenderedrendererTypetagName
data convertervalue
format contentType
styling disableThemeouterStyleClassstylestyleClassthemeId

使用法

実行時に、計算結果フィールドの値がページに 表示されます。

下の計算結果フィールドコントロールは、2 つのスコープ変数の合計を表示します。
<xp:text escape="true" id="computedField1"
	value="#{javascript:return requestScope.number1 + requestScope.number2}">
	<xp:this.converter>
		<xp:convertNumber type="number"></xp:convertNumber>
	</xp:this.converter>
</xp:text>
下の計算結果フィールドコントロールは、現在の XPage にバインドされているデータ要素の値を表示します。
<xp:text escape="true" id="computedField4" value="#{document1.subject}"></xp:text>