An Example

inline.zul: (the macro definition)

<row>
    <textbox value="${arg.col1}"/>    
    <textbox value="${arg.col2}"/>    
</row>

useinline.zul: (the target page)

<?componentname="myrow"macroURI="inline.zul" inline="true"?>        
        <windowtitle="Test of inline macros"border="normal">        
    <zscript><![CDATA[    
        importorg.zkoss.util.Pair;        

    List infos = new LinkedList();    
                for(int j = 0;j<10;++j){                
        infos.add(new Pair("A" + j, "B" +j));        
    }    
    ]]></zscript>    
    <grid>    
        <rows>        
                        <myrowcol1="${each.x}"col2="${each.y}"forEach="${infos}"/>                        
        </rows>        
    </grid>    
</window>