cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giac...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/jxforms/java/org/apache/cocoon/components/jxforms/flow/javascript JXForm.java
Date Thu, 07 Aug 2003 14:32:38 GMT
giacomo     2003/08/07 07:32:38

  Modified:    src/blocks/jxforms/java/org/apache/cocoon/components/jxforms/flow/javascript
                        JXForm.java
  Log:
  form.submitId was always returning null. Havn't found a place to set it so this hack does
it
  
  Revision  Changes    Path
  1.5       +4 -2      cocoon-2.1/src/blocks/jxforms/java/org/apache/cocoon/components/jxforms/flow/javascript/JXForm.java
  
  Index: JXForm.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/jxforms/java/org/apache/cocoon/components/jxforms/flow/javascript/JXForm.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -d -b -u -r1.4 -r1.5
  --- JXForm.java	20 Jul 2003 22:53:40 -0000	1.4
  +++ JXForm.java	7 Aug 2003 14:32:38 -0000	1.5
  @@ -138,7 +138,8 @@
       }
   
       public String jsFunction_getSubmitId() {
  -        return submitId;
  +        //return submitId;
  +        return (String)cocoon.getRequest().getAttribute("jxform-submit-id");
       }
   
       public void jsSet_submitId(String value) {
  @@ -146,7 +147,8 @@
       }
   
       public String jsGet_submitId() {
  -        return submitId;
  +        //return submitId;
  +        return (String)cocoon.getRequest().getAttribute("jxform-submit-id");
       }
   
       public void jsFunction_forwardTo(String uri,
  
  
  

Mime
View raw message