<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:table id="Table1" border="1" cellpadding="5" cellspacing="5">
<xp:tr id="row1">
<xp:td id="Cell1">
<xp:text escape="true" id="computedField1"></xp:text>
</xp:td>
<xp:td>
<xp:text escape="true" id="computedField2"></xp:text>
</xp:td>
</xp:tr>
<xp:tr>
<xp:td>
<xp:text escape="true" id="computedField3"></xp:text></xp:td>
<xp:td>
<xp:text escape="true" id="computedField4"></xp:text></xp:td>
</xp:tr>
<xp:tr>
<xp:td>
<xp:text escape="true" id="computedField5"></xp:text></xp:td>
<xp:td>
<xp:text escape="true" id="computedField6"></xp:text></xp:td>
</xp:tr>
</xp:table>
<xp:br></xp:br>
<xp:button id="button1" value="Таблица">
<xp:eventHandler event="onclick" submit="true"
refreshMode="partial" refreshId="Table1">
<xp:this.action><![CDATA[#{java script:getComponent("computedField1").setValue("Таблица")
getComponent("computedField2").setValue("Таблица")
getComponent("computedField3").setValue("Таблица")
getComponent("computedField4").setValue("Таблица")
getComponent("computedField5").setValue("Таблица")
getComponent("computedField6").setValue("Таблица")}]]></xp:this.action>
</xp:eventHandler></xp:button>
<xp:button value="Строка 1" id="button2">
<xp:eventHandler event="onclick" submit="true"
refreshMode="partial" refreshId="row1">
<xp:this.action><![CDATA[#{java script:getComponent("computedField1").setValue("Строка")
getComponent("computedField2").setValue("Строка")}]]></xp:this.action>
</xp:eventHandler></xp:button>
<xp:button value="Ячейка 1.1" id="button3">
<xp:eventHandler event="onclick" submit="true"
refreshMode="partial" refreshId="Cell1">
<xp:this.action><![CDATA[#{java script:getComponent("computedField1").setValue("Ячейка")}]]></xp:this.action>
</xp:eventHandler></xp:button></xp:view>