Git Product home page Git Product logo

Comments (4)

schauder avatar schauder commented on June 10, 2024

all *.zul files in the directory structure should get considered

<include src="x">

should be considered a dependency from the current file to the "x"

@ref Elements in the file shoud be considered dependencies
fully qualified class Names should be considered dependencies to these classes

from degraph.

matthiasthieroff avatar matthiasthieroff commented on June 10, 2024

An example for included zul files

tabbox.zul (reduced to minimum necessary information)

<zk>
    <!-- Option 1 -->
    <include src="/WEB-INF/styles/default.zul" />

    <tabbox >
        <tabs>
            <tab label="1" />
            <tab label="2" />
        </tabs>
        <tabpanels>
            <tabpanel>
                <!-- Option 2 -->
                <include src="@load(xyzVW.getSrc('tabpanel1.zul'))" />
            </tabpanel>
            <tabpanel>
                <!-- Option 3 -->
                <include src="@load(xyzVW.getSrc('subdir/tabpanel2.zul'))" />
            </tabpanel>
        </tabpanels>
    </tabbox>
</zk>

Option 1: The src path is a path relative to the web apps root folder.

Option 2: The src path is composed of a root path and the filename 'tabpanel1.zul'. By convention the root path is the exact same directory where 'tabbox.zul' is located.

Option 3: The src path is composed of a root path and a subdirectory/filename 'subdir/tabpanel2.zul'. By convention the root path is the exact same directory where 'tabbox.zul' is located.

from degraph.

matthiasthieroff avatar matthiasthieroff commented on June 10, 2024

An example for dependent Java classes

viewModel.zul

<zk>
    <!-- Option 1 -->
    <div apply="org.zkoss.bind.BindComposer"
        viewModel="@id('xyz') 
        @init('com.abc.def.XyzVM')">

        <!-- Option 2 -->
        <include src="other.zul"
            otherVM="@ref(xyz.other)"/>

        <!-- Option 3 -->
        <div apply="${mnoCtrl}"/>

        <!-- Option 4 -->
        <div apply="com.abc.def.pqsCtrl"/>

    </div>
</zk>

Option 1: Full qualified name to a dependent viewModel 'com.abc.def.XyzVM'.

Option 2: The variable 'otherVM' points to the return value of 'XyzVM.getOther()' and is accessible in 'other.zul'. This class could be everywhere :(

Option 3: A controller which gets injected via spring. You have to look up all spring conexts or scan all source files to resolve the dependency :(

Option 4: A controller with a full qualified name.

from degraph.

schauder avatar schauder commented on June 10, 2024

Sorry, currently I have no intention to make analysis pluggable

from degraph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.