From dev-return-65493-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Mon Oct 04 14:36:49 2004 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 67610 invoked from network); 4 Oct 2004 14:36:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Oct 2004 14:36:48 -0000 Received: (qmail 66097 invoked by uid 500); 4 Oct 2004 14:36:43 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 66026 invoked by uid 500); 4 Oct 2004 14:36:42 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 66012 invoked by uid 99); 4 Oct 2004 14:36:41 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of joerg.heinicke@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 04 Oct 2004 07:36:41 -0700 Received: (qmail 19052 invoked by uid 65534); 4 Oct 2004 14:36:34 -0000 Received: from p508801F4.dip0.t-ipconnect.de (EHLO [192.168.122.254]) (80.136.1.244) by mail.gmx.net (mp021) with SMTP; 04 Oct 2004 16:36:34 +0200 X-Authenticated: #3483660 Message-ID: <41616015.9080509@gmx.de> Date: Mon, 04 Oct 2004 16:37:09 +0200 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: de-de, de, en-us, en-gb, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Reseting and reusing of upload-widgets References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On 04.10.2004 15:34, Björn Voigt wrote: > Moin, > > i use an upload-widget (cocoon-2.1.5) in my cforms, > but I need it once more, but I cant set the value to > null to reset it for reuse. > > setValue is not implemented and throws an exception. > It allready possible to reset it? If not, Is it possible > that you add an method like to Upload.java > > > public void reset() { > this.part = null; > } setValue() has been implemented: http://issues.apache.org/bugzilla/show_bug.cgi?id=30270. But I guess resetting it to null is not possible with the current implementation as the instanceof test would fail. Joerg