Thank you Chris, everything works ok now! :)

-Tuomo

On 15.Jul.2002 -- 01:40 PM, Tuomo Lesonen wrote:
> Hi,
> 
> 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? :

Tuomo, you need to define a "set" with a "master" that determines
how many rows are affected. Look again at the sample, search for
"slave" and "master". Since you have only one column, you only
need a master.

> 
> <form method="post" action="delete.html">
>   <input type="checkbox" name="inventory.id" value="10">
>   <input type="checkbox" name="inventory.id" value="11">
>   <input type="checkbox" name="inventory.id" value="12">
> </form>
> 
> This seems to remove only one row from the table. Also tried...
> 
> <form method="post" action="delete.html">
>   <input type="checkbox" name="inventory.id[10]" value="10">
>   <input type="checkbox" name="inventory.id[11]" value="11">
>   <input type="checkbox" name="inventory.id[12]" value="12">
> </form>
> 
> and in database.xml:
> 
> <table name="inventory">
>   <keys>
>     <key name="id" type="int" autoincrement="true">
       <mode name="request" parameter="inventory.id[*]" type="request" 
set="master"/>
>       <mode name="auto" type="autoincr"/>
>     </key>
>   </keys>
>   <values>
>     <value name="displayname" type="string"></value>
>   </values>   
> </table>
> 
> table is accessed from the sitemap with this set:
> 
> <table-set name="inventory">
>   <table name="inventory" others-mode="request"/>
> </table-set>
> 
> ...But doesn't work either, only throws with a nullpointer exception. 
> 
> Cocoon 2.03 (dev)

I'd strongly suggest to use 2.1-dev since with that those actions were
moved to trunk (i.e. not scratchpad anymore). In addition, they contain
additions that are not found in 2.0.3

> Tomcat 4.04
> JDK 1.4.1
> MS SQL2000

        Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add "SUMMARY: " to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to