cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gkossakow...@apache.org
Subject svn commit: r528597 - in /cocoon/whiteboard/ajax-forms-refactoring/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js: MultiValueEditorWithSuggestion.js manifest.js
Date Fri, 13 Apr 2007 19:12:38 GMT
Author: gkossakowski
Date: Fri Apr 13 12:12:37 2007
New Revision: 528597

URL: http://svn.apache.org/viewvc?view=rev&rev=528597
Log:
Fix multivalue field with suggestions sample:
* widget was not registered at all, I guess it has been omitted while making transition to
Dojo 0.4.x
* old paths had to be changed

Modified:
    cocoon/whiteboard/ajax-forms-refactoring/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/MultiValueEditorWithSuggestion.js
    cocoon/whiteboard/ajax-forms-refactoring/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/manifest.js

Modified: cocoon/whiteboard/ajax-forms-refactoring/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/MultiValueEditorWithSuggestion.js
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/ajax-forms-refactoring/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/MultiValueEditorWithSuggestion.js?view=diff&rev=528597&r1=528596&r2=528597
==============================================================================
--- cocoon/whiteboard/ajax-forms-refactoring/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/MultiValueEditorWithSuggestion.js
(original)
+++ cocoon/whiteboard/ajax-forms-refactoring/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/MultiValueEditorWithSuggestion.js
Fri Apr 13 12:12:37 2007
@@ -33,22 +33,22 @@
     {
         widgetsInTemplate: true,
         cformsIdPrefix: "id-prefix-not-set",
-        dataUrl: "_cocoon/forms/suggest",
+        dataUrl: "servlet:/suggest",
         styleClass: "",
         popupUri: "",
         popupSize: "",
         popupLinkText: "",
-        resourcesUri: cocoon.resourcesUri,
-        templatePath: cocoon.resourcesUri + "/forms/js/templates/MultiValueEditorWithSuggestion.html",
+        resourcesUri: cocoon.formsResourcesUri,
+        templatePath: cocoon.formsResourcesUri + "/js/templates/MultiValueEditorWithSuggestion.html",
 
         _setUpDataUrl: function() {
             var dataUrl = this.dataUrl;
             if (!dataUrl || dataUrl == "") {
-                dataUrl = "_cocoon/forms/suggest/" + this.widgetId + "?filter=%{searchString}";
+                dataUrl = "servlet:/suggest/" + this.widgetId + "?filter=%{searchString}";
             } else {
                 var strings = dataUrl.split("?");
                 if (strings.length > 1) {
-                    if (strings[0] == "_cocoon/forms/suggest") {
+                    if (strings[0] == "servlet:/suggest") {
                         strings[0] += "/" + this.widgetId;
                     }
                     dataUrl = strings[0] + "?" + strings[1] + "&";

Modified: cocoon/whiteboard/ajax-forms-refactoring/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/manifest.js
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/ajax-forms-refactoring/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/manifest.js?view=diff&rev=528597&r1=528596&r2=528597
==============================================================================
--- cocoon/whiteboard/ajax-forms-refactoring/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/manifest.js
(original)
+++ cocoon/whiteboard/ajax-forms-refactoring/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/manifest.js
Fri Apr 13 12:12:37 2007
@@ -42,7 +42,8 @@
             "cformssuggest"             : "cocoon.forms.CFormsSuggest",
             "dropdowndatetimepicker"    : "cocoon.forms.DropdownDateTimePicker",
             "infopopup"                 : "cocoon.forms.InfoPopup",
-            "multivalueeditor"          : "cocoon.forms.MultiValueEditor"
+            "multivalueeditor"          : "cocoon.forms.MultiValueEditor",
+            "multivalueeditorwithsuggestion" : "cocoon.forms.MultiValueEditorWithSuggestion"
             // register new Widgets in the cocoon.forms namespace here
         },
         svg: {



Mime
View raw message