-
Bug
-
Resolution: Fixed
-
Normal
-
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.