UI work in the Example and ExampleExt components. Fixed minor layout issues, tested with Firefox and IE7, formatted the screen widget XML files so they have consistent line spacing, and added some comments to help new users.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653865 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian Crum
2008-05-06 18:12:46 +00:00
parent 1250513a38
commit efe9694fb8
13 changed files with 84 additions and 60 deletions
@@ -19,17 +19,18 @@ under the License.
-->
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
<form name="EditExampleExt" type="single"
target="updateExample" title="" default-map-name="example" default-entity-name="Example"
extends-resource="component://example/widget/example/ExampleForms.xml" extends="EditExample">
<form name="EditExampleExt" extends="EditExample"
extends-resource="component://example/widget/example/ExampleForms.xml">
<!-- NOTE: add new fields for the EditExample form here -->
<field name="exampleText"><display description="This example text means we are in the extended form."/></field>
<!-- in order for these to be at the bottom need to hide and then override these, or use the sort-order element which doesn't work well when we want to allow changes in the extended form; so here it is -->
<!-- In order for these to be at the bottom of the form, we need to hide the buttons from the
original form, and then create new ones. We could use the sort-order element, but that
doesn't work well when we want to allow changes in the original form. -->
<field name="submitButton" use-when="example!=null"><hidden/></field>
<field name="submitButton" use-when="example==null"><hidden/></field>
<field name="submitButtonOvrd" title="${uiLabelMap.CommonCreate}" use-when="example==null" widget-style="smallSubmit"><submit button-type="button"/></field>
<field name="submitButtonOvrd" title="${uiLabelMap.CommonUpdate}" use-when="example!=null" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
</forms>