0

Problem in calling afterCompose of macrocomponent

asked 2010-09-28 07:09:02 +0800

delta2000 gravatar image delta2000
30 1

Hi, i'm having problem to migrating my ZK 5.0.3 application to ZK 5.0.4. I have a page with several macrocomponents extending HtmlMacroComponent and in some case these components call createComponents to create other HtmlMacroComponent, so in ZK 5.0.3 every thing is ok, when i replaced the zk libs with 5.0.4 the application when render the page goes to excetpion

The exception is: "org.zkoss.zk.ui.UiException: Only the parent of a root component can be changed: <AreaGeoMacro componentAreaGeo>"
and the stack trace begins at afterCompose of AreaGeoMacro when the super.afterCompose is invoked!!!

What has changed in new version ok ZK to break this?
Any help is very appreciated

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-09-28 20:42:04 +0800

tomyeh gravatar image tomyeh
610 1 3
http://blog.zkoss.org ZK Team

Hi Francesco,

What is your build number? The most updated one shall be 2010090312. You can find it in the log file, or view the source of the generated HTML page.

Since 5.0.4, we introduced auto-wiring to HtmlMacroComponent (similar to GenericForwardComposer). You could turn them off if you don't want it by specifying true for both org.zkoss.zk.ui.macro.autowire.disabled and org.zkoss.zk.ui.macro.autoforward.disabled properties (refer to ZK Configuration Reference for details).

link publish delete flag offensive edit

answered 2010-09-29 07:14:41 +0800

delta2000 gravatar image delta2000
30 1

Thank you Tom,
i put true both parameters and now it works!. My build number is 2010083112, i think the latest stable release

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2010-09-28 07:09:02 +0800

Seen: 322 times

Last updated: Sep 29 '10

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