OFBiz Tree widgets are widgets that automatically generate HTML unordered lists (HTML ul
and li
markup tags) from the specified database content and/or other XML declarations.
Tree widgets are defined in Tree widget definition files that have an XML XSD declaration as follows. Tree widget definition files may be located anywhere within an OFBiz install:
<trees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "http://ofbiz.apache.org/dtds/widget-tree.xsd"> </trees>
Tree widgets can be added by the following steps:
1. Create a Tree widget definition within an existing Tree widget definition file. Start with a
tree name
and aroot-node-name
attribute. Theroot-node-name
is a trigger to OFBiz to create an HTMLul
markup tag.2. Create one or more "nodes". A tree node is created when you specify a
node
element.3. Create one or more "sub-nodes".
4. Close all
node
andsub-node
elements.5. Save the file.
6. Add the Tree...