dkim
10-19-2004, 09:04 AM
Hello,
I'm having a little problem with states. It seems as though views created dynamically through replication are not being removed when the remove is called.
Here is an example of my code:
<!-- NORMAL STATE -->
<state name="normal" apply="true" >
<simplelayout axis="y"/>
<view width="${parent.width}" height="20" bgcolor="#AAAAAA" datapath=".">
<stableborderlayout axis="x"/>
<text width="20" height="20" bgcolor="red" datapath="@date" text="${this.data}" />
<view>
</view>
<view name="buttons">
<text>+</text>
</view>
</view>
<view id="test...">
<simplelayout axis="y" />
<datapath xpath="./EVENT" pooling="false"/>
<view name="boob">
<method name="init">
Debug.write("Hi...",this);
super.init();
</method>
<simplelayout axis="x" />
<text datapath="@time" text="${this.data}"/>
<text datapath="@summary" text="${this.data}"/>
</view>
</view>
<control/>
</state>
<!-- END NORMAL STATE -->
I'm having a little problem with states. It seems as though views created dynamically through replication are not being removed when the remove is called.
Here is an example of my code:
<!-- NORMAL STATE -->
<state name="normal" apply="true" >
<simplelayout axis="y"/>
<view width="${parent.width}" height="20" bgcolor="#AAAAAA" datapath=".">
<stableborderlayout axis="x"/>
<text width="20" height="20" bgcolor="red" datapath="@date" text="${this.data}" />
<view>
</view>
<view name="buttons">
<text>+</text>
</view>
</view>
<view id="test...">
<simplelayout axis="y" />
<datapath xpath="./EVENT" pooling="false"/>
<view name="boob">
<method name="init">
Debug.write("Hi...",this);
super.init();
</method>
<simplelayout axis="x" />
<text datapath="@time" text="${this.data}"/>
<text datapath="@summary" text="${this.data}"/>
</view>
</view>
<control/>
</state>
<!-- END NORMAL STATE -->