|
Author: bibryam
Date: Sun Feb 7 17:48:22 2010 New Revision: 907456 URL: http://svn.apache.org/viewvc?rev=907456&view=rev Log: Added autocomplete support to LookupLayerPopupDecorator screen. Modified: ofbiz/trunk/framework/common/widget/CommonScreens.xml Modified: ofbiz/trunk/framework/common/widget/CommonScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/widget/CommonScreens.xml?rev=907456&r1=907455&r2=907456&view=diff ============================================================================== --- ofbiz/trunk/framework/common/widget/CommonScreens.xml (original) +++ ofbiz/trunk/framework/common/widget/CommonScreens.xml Sun Feb 7 17:48:22 2010 @@ -291,45 +291,63 @@ <!-- Global decorator for Lookup layer pop-up windows --> <screen name="LookupLayerPopupDecorator"> <section> - <actions> - <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> - <service service-name="getUserPreferenceGroup" result-map="prefResult"> - <field-map field-name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES"/> - </service> - <set field="userPreferences" from-field="prefResult.userPrefMap" global="true"/> - - <property-map resource="general" map-name="generalProperties" global="true"/> - <set field="visualThemeId" from-field="userPreferences.VISUAL_THEME" default-value="BIZZNESS_TIME" global="true"/> - <service service-name="getVisualThemeResources"> - <field-map field-name="visualThemeId"/> - <field-map field-name="themeResources" from-field="layoutSettings"/> - </service> - <set field="layoutSettings" from-field="themeResources" default-value="${layoutSettings}" global="true"/> - <set field="messagesTemplateLocation" from-field="layoutSettings.VT_MSG_TMPLT_LOC[0]" default-value="component://common/webcommon/includes/messages.ftl"/> - </actions> + <condition> + <if-empty field="parameters.ajaxLookup"/> + </condition> <widgets> - <platform-specific><html><html-template location="${messagesTemplateLocation}"/></html></platform-specific> <section> - <condition> - <not><if-empty-section section-name="body"/></not> - </condition> + <actions> + <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> + <service service-name="getUserPreferenceGroup" result-map="prefResult"> + <field-map field-name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES"/> + </service> + <set field="userPreferences" from-field="prefResult.userPrefMap" global="true"/> + + <property-map resource="general" map-name="generalProperties" global="true"/> + <set field="visualThemeId" from-field="userPreferences.VISUAL_THEME" default-value="BIZZNESS_TIME" global="true"/> + <service service-name="getVisualThemeResources"> + <field-map field-name="visualThemeId"/> + <field-map field-name="themeResources" from-field="layoutSettings"/> + </service> + <set field="layoutSettings" from-field="themeResources" default-value="${layoutSettings}" global="true"/> + <set field="messagesTemplateLocation" from-field="layoutSettings.VT_MSG_TMPLT_LOC[0]" default-value="component://common/webcommon/includes/messages.ftl"/> + </actions> <widgets> - <decorator-section-include name="body"/> + <platform-specific><html><html-template location="${messagesTemplateLocation}"/></html></platform-specific> + <section> + <condition> + <not><if-empty-section section-name="body"/></not> + </condition> + <widgets> + <decorator-section-include name="body"/> + </widgets> + <fail-widgets> + <screenlet title="${title}" id="findScreenlet" collapsible="false" padded="false"> + <container id="search-options"> + <decorator-section-include name="search-options"/> + </container> + </screenlet> + <screenlet> + <container id="search-results"> + <decorator-section-include name="search-results"/> + </container> + </screenlet> + </fail-widgets> + </section> </widgets> - <fail-widgets> - <screenlet title="${title}" id="findScreenlet" collapsible="false" padded="false"> - <container id="search-options"> - <decorator-section-include name="search-options"/> - </container> - </screenlet> - <screenlet> - <container id="search-results"> - <decorator-section-include name="search-results"/> - </container> - </screenlet> - </fail-widgets> </section> </widgets> + <fail-widgets> + <section> + <actions> + <property-to-field resource="widget" property="widget.autocompleter.defaultViewSize" field="autocompleterViewSize"/> + <script location="component://common/webcommon/WEB-INF/actions/includes/FindAutocompleteOptions.groovy"/> + </actions> + <widgets> + <platform-specific><html><html-template location="component://common/webcommon/includes/ajaxAutocompleteOptions.ftl"/></html></platform-specific> + </widgets> + </section> + </fail-widgets> </section> </screen> |
| Free forum by Nabble | Edit this page |
