Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-380

import a file with a chart causes UI can't be modified in the rendering phase

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.6.0
    • 5.5.0
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. run the attached zul and composer

      Current Result

      java.lang.IllegalStateException: UI can't be modified in the rendering phase
      	at org.zkoss.zk.ui.impl.UiVisualizer.addMoved(UiVisualizer.java:358)
      	at org.zkoss.zk.ui.impl.UiEngineImpl.addMoved(UiEngineImpl.java:358)
      	at org.zkoss.zk.ui.AbstractComponent.addMoved(AbstractComponent.java:481)
      	at org.zkoss.zk.ui.AbstractComponent.setParent(AbstractComponent.java:1254)
      	at io.keikaiex.ui.widget.ChartsWidget.setInClient(ChartsWidget.java:67)
      	at io.keikaiex.ui.widget.DefaultWidgetHandler.invaliate(DefaultWidgetHandler.java:209)
      	at io.keikai.ui.Spreadsheet.renderProperties(Spreadsheet.java:1684)
      	at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:2175)
      	at org.zkoss.zk.ui.impl.UiVisualizer.redraw(UiVisualizer.java:1016)
      	at org.zkoss.zk.ui.impl.UiVisualizer.getResponses(UiVisualizer.java:710)
      	at org.zkoss.zk.ui.impl.UiEngineImpl.getResponses(UiEngineImpl.java:1575)
      	at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1345)
      	at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:611)
      	at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:487)
      	at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:495)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      

      Expected Result

      no error

      Debug Information

      • the imported file should have a chart to cause this bug
      • change UI in Spreadsheet.renderProperties() seems not a good practice.

        1. blank.xlsx
          8 kB
          hawk
        2. demo_sample.xlsx
          62 kB
          hawk
        3. ImporterComposer.java
          1 kB
          hawk
        4. import-importer.zul
          0.6 kB
          hawk

            RaymondChao RaymondChao
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: