/[Apache-SVN]
ViewVC logotype

Revision 1738958


Jump to revision: Previous Next
Author: jleroux
Date: Wed Apr 13 15:38:16 2016 UTC (8 years ago)
Changed paths: 11
Log Message:
A combined patch from Adrian's, James Yong's and my work for "Add Support For Compound Screen Widget XML Files" - https://issues.apache.org/jira/browse/OFBIZ-4090 and "Add Example for Compound Screen Widget" - https://issues.apache.org/jira/browse/OFBIZ-6990

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...




Changed paths

Path Details
Directoryofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java modified , text changed
Directoryofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ConfigXMLReader.java modified , text changed
Directoryofbiz/trunk/framework/widget/dtd/compound-widgets.xsd added
Directoryofbiz/trunk/framework/widget/dtd/widget-catalog.xml modified , text changed
Directoryofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/FormFactory.java modified , text changed
Directoryofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/MenuFactory.java modified , text changed
Directoryofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ScreenFactory.java modified , text changed
Directoryofbiz/trunk/specialpurpose/example/config/ExampleUiLabels.xml modified , text changed
Directoryofbiz/trunk/specialpurpose/example/webapp/example/WEB-INF/controller.xml modified , text changed
Directoryofbiz/trunk/specialpurpose/example/widget/example/ExampleCompoundWidgets.xml added
Directoryofbiz/trunk/specialpurpose/example/widget/example/ExampleMenus.xml modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26