-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
Ok, since it seems the problem is with the macro component, I tried to following approach.
File 1:
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" ?>
<?page title="Document List" contentType="text/html;charset=UTF-8"?>
<?component name="myMacro" macroURI="/wf_pages/docList/docListGrid.zul"?>
<zk>
<window border="normal" >
<myMacro />
</window>
File 2 (MACRO DEFINITION):
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" ?>
<?page title="Document List" contentType="text/html;charset=UTF-8"?>
<zk >
<zscript >
<![CDATA[
Composer comp = new MyComposer();
]]>
</zscript>
<window apply="${ comp }">
<textbox />
</window>
As you can notice, I moved the zscript code inside the macro definition, so that the apply is 'applied' to a ZK native widget (window). With this approach, the ZUL Editor autocomplete feature works (it lists the comp variable). However, at runtime it do not works (the composer do not gets called).
Could someone there tell me if this is a bug, it is like that by design or something else?