cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coli...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/transformation XMLFormTransformer.java
Date Mon, 21 Apr 2003 16:14:55 GMT
coliver     2003/04/21 09:14:54

  Modified:    src/java/org/apache/cocoon/transformation
                        XMLFormTransformer.java
  Log:
  Changed to preserve submit id when continuation is present
  
  Revision  Changes    Path
  1.4       +4 -3      cocoon-2.1/src/java/org/apache/cocoon/transformation/XMLFormTransformer.java
  
  Index: XMLFormTransformer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/transformation/XMLFormTransformer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XMLFormTransformer.java	16 Mar 2003 17:49:15 -0000	1.3
  +++ XMLFormTransformer.java	21 Apr 2003 16:14:54 -0000	1.4
  @@ -529,14 +529,15 @@
   		  WebContinuation kont
   		      = (WebContinuation)((Environment)resolver).getAttribute("kont");
   		  if (kont != null) {
  -		      String id;
   		      int level = 0;
   		      if (continuation.equals("back")) {
   			  level = 3;
   		      }
  -		      id = kont.getContinuation(level).getId();
   		      AttributesImpl impl = new AttributesImpl(attributes);
   		      int index = impl.getIndex("id");
  +		      String id = impl.getValue(index);
  +		      String kId = kont.getContinuation(level).getId();
  +		      id = kId + ":"+id;
   		      if (index >= 0) {
   			  impl.setValue(index, id);
   		      } else {
  
  
  

Mime
View raw message