Uploaded image for project: 'ZK Studio'
  1. ZK Studio
  2. ZKSTUDIO-56

The field name of Java bean including "_" will cause zul editor error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.1
    • None
    • None
    • None

      zul

      <zk>
      	<window apply="org.zkoss.bind.BindComposer"
      		viewModel="@id('vm')@init('test.TestVM')">
      		<label value="@load(vm.text)"/>
      		<label value="@load(vm.text_a)"/>
      	</window>
      </zk>
      

      TestVM.java

      package test;
      
      public class TestVM {
      	
      	private String text;
      	private String text_a;
      	
      	public String getText() {
      		return text;
      	}
      	
      	public String getText_a() {
      		return text_a;
      	}
      
      	public void setText(String text) {
      		this.text = text;
      	}
      }
      
      

            paowang paowang
            jimmyshiau jimmyshiau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: