-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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).
Asked: 2010-09-28 07:09:02 +0800
Seen: 322 times
Last updated: Sep 29 '10