lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/acting HTMLFormSaveAction.java
Date Wed, 13 Aug 2003 09:46:53 GMT
michi       2003/08/13 02:46:53

  Modified:    src/java/org/apache/lenya/cms/cocoon/acting
                        HTMLFormSaveAction.java
  Log:
  delete started to implement
  
  Revision  Changes    Path
  1.7       +7 -2      cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/acting/HTMLFormSaveAction.java
  
  Index: HTMLFormSaveAction.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/acting/HTMLFormSaveAction.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- HTMLFormSaveAction.java	13 Aug 2003 00:51:31 -0000	1.6
  +++ HTMLFormSaveAction.java	13 Aug 2003 09:46:53 -0000	1.7
  @@ -129,7 +129,12 @@
                           } else if (name.equals("insert")) { // Insert Element
                               getLogger().error(".act(): Insert Element: " + request.getParameter("insert"));
                           } else if (name.equals("delete")) { // Delete Element
  -                            getLogger().error(".act(): Delete Element: " + request.getParameter("delete"));
  +                            String value = request.getParameter("delete");
  +                            String xpath = value.substring(8, value.indexOf("["));
  +                            String tagID = value.substring(value.indexOf("[") + 1, value.indexOf("]"));
  +                            xpath = xpath + "[@tagID=\"" + tagID + "\"]";
  +                            getLogger().error(".act() Delete Element: XPath: " + xpath);
  +                            //DOMUtil.deleteElement(document, xpath);
                           }
                       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message