Revision history [back]

click to hide/show revision 1
initial version

answered 2010-08-15 12:03:32 +0800

ramsnaps gravatar image ramsnaps

Amrisofien,

Were you able to integrate ZK with ftl in ofBiz? I would like to re-use ofBiz's decorator screens with header, menu and footer and use ZUL for only body/content.

i.e. I would like to <include src="/party/editPosMenu.zul"/> in an ftl file and have ofBiz render ZUL files.

I would like to incluse ZUL file in say partyscreens.xml file as below.

   <screen name="ViewDevices">
        <section>
            <actions>
                <set field="titleProperty" value="ViewTerminals"/>
                <set field="tabButtonItem" value="TerminalDetails"/>
                <set field="headerItem" value="find"/>
                <script location="component://party/webapp/partymgr/WEB-INF/actions/party/viewDevices.bsh"/>
                <script location="component://party/webapp/partymgr/WEB-INF/actions/party/setPartyAttributes.bsh"/>
            </actions>
            <widgets>
                <decorator-screen name="TerminalCommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">

                        <platform-specific>**
                            <html>
                                <html-template
                                        location="component://party/webapp/partymgr/party/updatePartyTerminalInfo.ftl"/>
                            </html>**
                        </platform-specific>
                        <platform-specific>
                            **<html>
                                     <html-template location="component://party/webapp/partymgr/party/viewPosMenu.zul"/>
                            </html>**
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
 </screen>

Can you please let me know if possible.

Thanks a bunch! Ram

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