cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/flow/javascript/v2 Form.js
Date Fri, 23 Apr 2004 16:04:09 GMT
bruno       2004/04/23 09:04:09

  Modified:    src/blocks/forms/java/org/apache/cocoon/forms/flow/javascript/v2
                        Form.js
  Log:
  fixed unchangeable locale.
  (java)Form.locale is initialized from formcontext, and formcontext was initialized with
(java)Form.getLocale().
  
  Revision  Changes    Path
  1.5       +2 -1      cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/flow/javascript/v2/Form.js
  
  Index: Form.js
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/flow/javascript/v2/Form.js,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Form.js	18 Mar 2004 21:04:40 -0000	1.4
  +++ Form.js	23 Apr 2004 16:04:09 -0000	1.5
  @@ -46,6 +46,7 @@
           this.binding_ = null;
           this.formWidget_ = new Widget(form);
           this.local_ = cocoon.createPageLocal();
  +        this.locale = java.util.Locale.getDefault();
       } finally {
           cocoon.releaseComponent(formMgr);
           if (src != null) resolver.release(src);
  @@ -107,7 +108,7 @@
       cocoon.request.setAttribute(Packages.org.apache.cocoon.forms.transformation.CFORMSKEY,
javaWidget);
       var wk = cocoon.sendPageAndWait(uri, this.formWidget_, fun, ttl); 
       var formContext = 
  -        new FormContext(cocoon.request, javaWidget.getLocale());
  +        new FormContext(cocoon.request, this.locale);
       var userErrors = 0;
       this.formWidget_.validationErrorListener = function(widget, error) {
           if (error != null) {
  
  
  

Mime
View raw message