text - Label
Attaches a visible label to a control.
Category
basicsSyntax
text="label"
Usage
In Design mode, click the top tab under Properties and look for Label, or click All Properties and look for text under basics.Examples
This Check Box control attaches a label.<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>