Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-956

setTooltip in a event cause IllegalStateException in ZK 6

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 6.0.1
    • 6.0.0
    • None

      I used to render the listbox item in render later but after migrate to zk 6 i got the following error

      SEVERE: java.lang.IllegalStateException: UI can't be modified in the rendering phase
      at org.zkoss.zk.ui.impl.UiVisualizer.getAttrRespMap(UiVisualizer.java:299)
      at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate0(UiVisualizer.java:254)
      at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate(UiVisualizer.java:238)
      at org.zkoss.zk.ui.impl.UiEngineImpl.addSmartUpdate(UiEngineImpl.java:280)
      at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1584)
      at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1559)
      at org.zkoss.zul.impl.XulElement.setTooltip(XulElement.java:286)
      at org.zkoss.zul.impl.XulElement.setTooltip(XulElement.java:299)
      at org.zkoss.zul.impl.XulElement.renderProperties(XulElement.java:313)
      at org.zkoss.zul.impl.MeshElement.renderProperties(MeshElement.java:215)
      at org.zkoss.zul.Listbox.renderProperties(Listbox.java:3140)

            TonyQ TonyQ
            khy khy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: