Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1468

Value doesn't be reload if it binds to @ref and in include

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.0
    • Fix Version/s: 6.5.1
    • Component/s: Databind 2
    • Labels:
      None

      Description

      <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 {
      }
      
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dennis dennis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: