Adrian: This adds the ability to include screen widgets, form widgets, menu widgets, and simple methods in a single XML file. This approach could be used in situations where the widgets share a logical grouping - so they can be kept in one place. James: An example to test out Compound Screen Widget jlerouxc: here are the changes and tests globally # As James mentionned we no longer need *-v2.xsd files, I removed them from Adrian's patch # I created a compound-widgets.xsd based on Adrian's and James Yong's previous work. From Paul Foxworthy's comment in OFBIZ-4090, I decided to name the root compound-widgets (hence the file name). I arranged its elements in another way, see below with ExampleCompoundWidgets.xml # I slightly modified James Yong's ExampleCompoundScreenWidget.xml file and renamed it ExampleCompoundWidgets.xml. I added an "s" because there are several OFBiz widgets gathered in one place. For the modifications: I simply changed the names and arranged the elements in another way which I find better suited. I'm used to 1st create the query, then the menus, the screens and their forms. We rarely use widget-trees but it's there also. Finally the simple-method at end if any. The order is not enforced though, so everybody can use her/his own :) # I added a French label # I completed the widget-catalog.xml with this new entry and tested locally in Eclipse by reloading the XML catalog entries. I hope I did not miss nor mixed things, the local instance I used is a bit overcrowded with pending changes... git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1738958 13f79535-47bb-0310-9956-ffa450edef68
15 lines
564 B
XML
15 lines
564 B
XML
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
elementFormDefault="qualified">
|
|
<xs:element name="compound-widgets">
|
|
<xs:complexType>
|
|
<xs:all minOccurs="0" maxOccurs="1">
|
|
<xs:element name="site-conf"/>
|
|
<xs:element name="menus"/>
|
|
<xs:element name="screens"/>
|
|
<xs:element name="trees"/>
|
|
<xs:element name="forms"/>
|
|
<xs:element name="simple-methods"/>
|
|
</xs:all>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
</xs:schema> |