0

Include html page error when updating ZK version

asked 2015-01-22 10:36:24 +0800

Neus gravatar image Neus
1415 14

updated 2015-01-22 10:38:03 +0800

Hi, I updated my ZK to ZK7.0.5. But I'm getting an exception when trying to run my application.

The thing is that I'm creating a component in java

Component father = Executions.createComponents("/recursos/Utilidades/Paneles-Info/PanelHTML.zul", null, null);

which includes an include with a html page

PanelHTML.zul:

<zk>
    <include width="100%" height="100%"  src="/recursos/Utilidades/Paneles-Info/panelHTML.html"></include>
</zk>

At the moment of the creation I'm getting this Exception:

org.zkoss.zk.ui.UiException: Html must be the root component, not <Include qM4Qs>
at org.zkoss.zhtml.Html.beforeParentChanged(Html.java:70)
at org.zkoss.zk.ui.AbstractComponent.setParent(AbstractComponent.java:969)
at org.zkoss.zk.ui.AbstractComponent.insertBefore(AbstractComponent.java:1109)
at org.zkoss.zk.ui.impl.AbstractUiFactory.newComponent(AbstractUiFactory.java:100)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:857)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699)
at org.zkoss.zk.ui.impl.UiEngineImpl.createComponents(UiEngineImpl.java:1080)
at org.zkoss.zk.ui.impl.AbstractExecution.createComponents0(AbstractExecution.java:251)
at org.zkoss.zk.ui.impl.AbstractExecution.createComponents(AbstractExecution.java:243)
at org.zkoss.zul.Include.afterCompose(Include.java:478)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:878)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:797)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:757)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699)
at org.zkoss.zk.ui.impl.UiEngineImpl.createComponents(UiEngineImpl.java:1080)
at org.zkoss.zk.ui.impl.AbstractExecution.createComponents0(AbstractExecution.java:251)
at org.zkoss.zk.ui.impl.AbstractExecution.createComponents(AbstractExecution.java:243)
at org.zkoss.zk.ui.Executions.createComponents(Executions.java:176)
at org.sts.generales.Herramientas.Paneles.CrearPortalHTML.CrearPanelHTML(CrearPortalHTML.java:309)
at org.sts.generales.Herramientas.Paneles.CrearPortalHTML.addDiv(CrearPortalHTML.java:293)
at org.sts.generales.Herramientas.Paneles.CrearPortalHTML.crearPanel(CrearPortalHTML.java:197)
at org.sts.generales.Herramientas.Paneles.CrearPortalHTML.tickTimer(CrearPortalHTML.java:325)
at org.sts.generales.Herramientas.Paneles.CrearPortalHTML$1.onEvent(CrearPortalHTML.java:381)
at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2752)
at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2723)
at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2664)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:536)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:463)

What does this means???What has changed in ZK???? Please I need to update my ZK version to get some bugs solved. Every time I need to update ZK is desperate...

Thank you

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-01-23 08:22:07 +0800

vincentjian gravatar image vincentjian
2245 6

Hi, it is a known bug in ZK 7.0.4. Please use defer mode to workaround this issue.

<include mode="defer" src="/recursos/Utilidades/Paneles-Info/panelHTML.html" />
link publish delete flag offensive edit

Comments

Thank you!

Neus ( 2015-01-23 11:20:46 +0800 )edit
0

answered 2016-12-07 13:22:12 +0800

hubkurvers gravatar image hubkurvers
0

Same problem in ZK 8.0.0, and same solution works for me.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-01-22 10:36:24 +0800

Seen: 33 times

Last updated: Dec 07 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More