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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 2.0.1
    • Affects Version/s: None
    • Component/s: 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;
      	}
      }
      
      

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

              Created:
              Updated:
              Resolved: