cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tuomo Lesonen <>
Subject Deleting multiple rows with the modular DatabaseDeleteAction
Date Mon, 15 Jul 2002 10:40:21 GMT

I can't figure out how to remove multiple rows with this action within a
single request. Am I using the right syntax in HTML? :

<form method="post" action="delete.html">
  <input type="checkbox" name="" value="10">
  <input type="checkbox" name="" value="11">
  <input type="checkbox" name="" value="12">

This seems to remove only one row from the table. Also tried...

<form method="post" action="delete.html">
  <input type="checkbox" name="[10]" value="10">
  <input type="checkbox" name="[11]" value="11">
  <input type="checkbox" name="[12]" value="12">

and in database.xml:

<table name="inventory">
    <key name="id" type="int" autoincrement="true">
      <mode name="request" parameter="[*]" type="request"/>
	<mode name="auto" type="autoincr"/>
    <value name="displayname" type="string"></value>

table is accessed from the sitemap with this set:

<table-set name="inventory">
  <table name="inventory" others-mode="request"/>

...But doesn't work either, only throws with a nullpointer exception. 

Cocoon 2.03 (dev)
Tomcat 4.04
JDK 1.4.1
MS SQL2000

Has anyone done this? Help needed.


Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message