-
Bug
-
Resolution: Fixed
-
Normal
-
6.5.0
-
None
-
None
<zk> <label multiline="true"> 1.change the dynamic value to C and tab out. 2.all Dynamic Value should change to C (however, dValue in inner window2 is not if the bug isn't fixed) </label> <window title = "Outter Window" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('org.zkoss.zktest.bind.issue.B01468RefInclude')" > <vlayout> <hlayout> Dynamic Value : <textbox id="tb1" value="@bind(vm.dynamicValue)"/> <label id="lb1" value="@load(vm.dynamicValue)"/> </hlayout> </vlayout> <div sValue="@ref(vm.staticValue)" dValue="@ref(vm.dynamicValue)"> <hlayout> dValue : <label id="lb2" value="@load(dValue)"/> </hlayout> <include src="B01468RefIncludeInner.zul" /> </div> </window> </zk>
<zk> <window title = "Inner Window 1"> <vlayout> <hlayout> dValue : <label id="lb3" value="@load(dValue)"/> </hlayout> <hlayout> Outer VM Dynamic Value : <label id="lb4" value="@load(vm.dynamicValue)"/> </hlayout> </vlayout> </window> <window title = "Inner Window 2" apply="org.zkoss.bind.BindComposer" viewModel="@id('vmi') @init('org.zkoss.zktest.bind.issue.B01468RefIncludeInner')" > <vlayout> <hlayout> dValue : <label id="lb5" value="@load(dValue)"/> </hlayout> <hlayout> Outer VM Dynamic Value : <label id="lb6" value="@load(vm.dynamicValue)"/> </hlayout> </vlayout> </window> </zk>
package org.zkoss.zktest.bind.issue; public class B01468RefInclude { String dynamicValue = "DEF"; public String getDynamicValue() { return dynamicValue; } public void setDynamicValue(String dynamicValue) { this.dynamicValue = dynamicValue; } }
package org.zkoss.zktest.bind.issue; import org.zkoss.bind.annotation.ExecutionArgParam; import org.zkoss.bind.annotation.Init; public class B01468RefIncludeInner { }