表示されるラベルをコントロールに付加します。
text="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>