Uploaded image for project: 'ZK Charts'
  1. ZK Charts
  2. ZKCHARTS-56

model removeValue and addValue cause desynchronization with client

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 3.0.2
    • 2.1.1
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      Run attached example (zul + java)
      Click on the button

      Current Result

      Values are removed but not added

      Expected Result

      Values should be removed and added

      Debug Info

      Root Cause

      Point DESTROY event was changed into Series DESTROY event, which is wrong (should be REMOVED).

      Workaround

      Extend charts such as:

      public class ChartsWorkaround extends Charts {
      
      	@Override
      	public void onSyncModel() {
      		super.onSyncModel();
      		invalidate();
      	}
      	
      }
      

      in zul:

      <charts id="chart" type="spline" model="@bind(vm.model)" use="org.zkoss.support.ChartsWorkaround" />
      

        1. ChartsBugVM.java
          0.8 kB
        2. spline3.zul
          0.3 kB

            rudyhuang rudyhuang
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h