Merges the jQuery branch back to the trunk

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044503 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2010-12-10 20:40:08 +00:00
parent a2fd254167
commit 24fe5ff37e
1418 changed files with 103465 additions and 156611 deletions
@@ -294,7 +294,7 @@ under the License.
</decorator-section>
<decorator-section name="body">
<container style="clear" />
<include-screen name="FlotrChart" location="component://common/widget/flotrScreens.xml"/>
<include-screen name="FlotChart" location="component://common/widget/flotScreens.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
@@ -24,7 +24,6 @@ under the License.
<screen name="AjaxExample">
<section>
<actions>
<set field="layoutSettings.styleSheets[+0]" value="/images/prototypejs/scriptaculouscontrols.css" global="true"/>
<set field="headerItem" value="AjaxExample"/>
<set field="titleProperty" value="PageTitleFindExample"/>
<set field="exampleCtx" from-field="parameters"/>
@@ -62,7 +62,6 @@ under the License.
<screen name="EditExample">
<section>
<actions>
<set field="layoutSettings.styleSheets[+0]" value="/images/prototypejs/scriptaculouscontrols.css" global="true"/>
<set field="titleProperty" value="PageTitleEditExample"/>
<set field="tabButtonItem" value="EditExample"/>
<set field="exampleId" from-field="parameters.exampleId"/>
@@ -117,9 +116,6 @@ under the License.
<screen name="EditExampleFeatureAppls">
<section>
<actions>
<set field="layoutSettings.javaScripts[+0]" value="/images/prototypejs/scriptaculous.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/prototypejs/prototype.js" global="true"/>
<set field="layoutSettings.styleSheets[+0]" value="/images/prototypejs/scriptaculouscontrols.css" global="true"/>
<set field="titleProperty" value="PageTitleEditExampleFeatureAppls"/>
<set field="tabButtonItem" value="EditExampleFeatureAppls"/>
<set field="exampleId" from-field="parameters.exampleId"/>
@@ -231,9 +231,6 @@ under the License.
<!-- ****************************** -->
<!-- *** Autocomplete dropdown *** -->
<!-- ****************************** -->
<!-- most feature rich for autocomplete, ie partial text entry searches the full string,
doesn't require custom request to function, etc; Note that for usability this is still a bit lame since you can't see the full list,
you HAVE to know part of the ID or description in order to see options -->
<!-- TODO : return only the Id, else you need to edit the field to remove the description -->
<field name="emptyField1" title="${uiLabelMap.CommonEmptyHeader}"><display/></field>
<field name="geoId" title="${uiLabelMap.ExampleAutocompleteDropdown}"
@@ -241,7 +238,7 @@ under the License.
<drop-down>
<auto-complete/>
<entity-options entity-name="Geo" description="${geoId}: ${geoName}">
<entity-constraint name="geoTypeId" value="GROUP"/>
<entity-constraint name="geoTypeId" value="COUNTRY"/>
<entity-order-by field-name="geoName"/>
</entity-options>
</drop-down>
@@ -263,6 +260,25 @@ under the License.
</drop-down>
</field>
</form>
<!-- ****************************** -->
<!-- *** Multiple Dropdown *** -->
<!-- ****************************** -->
<!-- See why this is used here http://www.ryancramer.com/journal/entries/select_multiple/ -->
<form name="DropDownMultipleFieldExampleForm" type="single" title="">
<field name="emptyField1" title="${uiLabelMap.CommonEmptyHeader}"><display/></field>
<field name="multipleDropDownFields" title="${uiLabelMap.ExampleMultipleDropDowns}">
<display description="${uiLabelMap.ExampleMultipleDropDownTooltip}"/>
</field>
<field name="countryGeoIdMultiple" title="${uiLabelMap.CommonCountry}">
<drop-down no-current-selected-key="USA">
<entity-options entity-name="Geo" key-field-name="geoId" description="${geoName}">
<entity-constraint name="geoTypeId" value="COUNTRY"/>
<entity-order-by field-name="geoName"/>
</entity-options>
</drop-down>
</field>
</form>
<!-- Simple form to print a FOP PDF file with the fonts available in OFBiz Project -->
<form name="FOPFontsExampleForm" type="single" target="printExampleFOPFonts">
@@ -316,25 +332,25 @@ under the License.
<!-- Lookup Examples -->
<form name="ExampleLookupFields" type="single" title="">
<!-- Old style lookup (in a popup window), geoIdAlone because we have another geoId below -->
<!-- Old style lookup (in a popup window without autocompletion), geoIdAlone because we have another geoId below -->
<field name="geoIdAlone" title="${uiLabelMap.CommonGeoId}">
<lookup target-form-name="LookupGeo" presentation="window"/>
</field>
<!-- Standard lookup (in a layer)-->
<!-- passes the name in one field and the id in another, this does not work yet with autcompletion, WIP... -->
<!-- Standard lookup (in a layer with autocompletion) -->
<!-- passes the name in one field and the id in another, passing the id in the other field does not work yet with autocompletion, WIP... -->
<field name="geoName" title="${uiLabelMap.CommonGeoName}">
<lookup target-form-name="LookupGeoName" description-field-name="geoId"/>
</field>
<!-- This field may be hidden and the name rendered in partyName using default-value if partyGroupId is known when loading the form-->
<!-- This field may be hidden and the name rendered in geoName using default-value if geoId is known when loading the form-->
<field name="geoId" title="${uiLabelMap.CommonGeoId}"><text/></field><!-- the text field is only used for rendering. In the "real life" you would use the hidden field commented below to pass the data to the request -->
<!--field name="geoId"><hidden/></field-->
<sort-order>
<field-group>
<sort-field name="geoId"/>
<sort-field name="geoIdAlone"/>
</field-group>
<field-group>
<sort-field name="geoName"/>
<sort-field name="geoGroupId"/>
<sort-field name="geoId"/>
</field-group>
</sort-order>
</form>
@@ -64,11 +64,20 @@ under the License.
<set field="dependentKeyName" value="geoId"/>
<set field="descName" value="geoName"/>
<set field="selectedDependentOption" from-field="postalAddress.stateProvinceGeoId" default-value="_none_"/><!-- postalAddress.stateProvinceGeoId does not make much sense here, only to get the idea -->
<!-- asmslect parameters, must be prefixed by asm_ for setMultipleSelectJs.ftl -->
<set field="asm_multipleSelectForm" value="DropDownMultipleFieldExampleForm"/>
<set field="asm_multipleSelect" value="DropDownMultipleFieldExampleForm_countryGeoIdMultiple"/>
<set field="asm_formSize" value="600"/>
<set field="asm_asmListItemPercentOfForm" value="95"/>
<set field="asm_sortable" value="false"/>
</actions>
<widgets>
<!--platform-specific><html><html-template location="component://common/webcommon/includes/setCountryStatesEventJs.ftl"/></html></platform-specific-->
<platform-specific><html><html-template location="component://common/webcommon/includes/setDependentDropdownValuesJs.ftl"/></html></platform-specific>
<platform-specific><html><html-template location="component://common/webcommon/includes/setMultipleSelectJs.ftl"/></html></platform-specific>
<include-form name="DropDownFieldsExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
<include-form name="DropDownMultipleFieldExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
</widgets>
</section>
</container>