that is the one thing we still are doing first before anything else on Form:

public final void onFormSubmitted()
   {
       if (handleMultiPart())
       {
           // First, see if the processing was triggered by a Wicket button
           final Button submittingButton = findSubmittingButton();

// When processing was triggered by a Wicket button and that button // indicates it wants to be called immediately (without processing),
           // call Button.onSubmit() right away.
if (submittingButton != null && !submittingButton.getDefaultFormProcessing())
           {
               submittingButton.onSubmit();
           }
           else
           {
               // process the form for this request
               if (process())
               {
                   // let clients handle further processing
                   delegateSubmit(submittingButton);
               }
           }
       }
   }

So i think you have to have some hooks in the handleMultiPart() method...

johan


Michael Glauche wrote:
Juergen Donnerstag wrote:
I've no clue, yet. If I were you I would download the software
(sourceforge) and see how it works. It is implemented in PHP,
java/servlet and will be in perl. Shouldn't be too difficult to figure
it out. We are using the apache commons fileUpload jar. May be they
are using it as well or more likely as it is available in PHP as well,
some other means. May be you can make a wicket component similar to
our existing file upload component and contribute it to the project?

They just read chunks of the ServletInputStream and update a status variable. Although this implementation writes the status to a temporary file (!?)

The problm in wicket seems the validator, it seems to load the file first, then try to validate it.

When I try to overide onSubmit the data is already transfered. How can I intercept this ?

regards,
       Michael


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to