text - ラベル

表示されるラベルをコントロールに付加します。

カテゴリ

basics

構文

text="label"

使用法

設計モードで、[プロパティ] の下のトップタブをクリックして [ラベル] を探すか、[すべてのプロパティ] を クリックして [basics] の下で [text] を 探します。

ここに示すチェックボックスコントロールは ラベルを付加します。
<xp:checkBox text="Night phone same as day" id="checkBox1"
	value="#{requestScope.phonesame}">
	<xp:eventHandler event="onchange" submit="true" 	refreshMode="complete">
		<xp:this.action><![CDATA[#{javascript:
			if(requestScope.phonesame == "true") {
				getComponent("phonenight").setValue(
					getComponent("phoneday").getValue());
			}
		}]]></xp:this.action>
	</xp:eventHandler>
</xp:checkBox>