Re: Page reload after file upload

2008-03-06 Thread Igor Vaynberg
you need to use the same form for both upload and other fields. that
is just how html works.

-igor


On Thu, Mar 6, 2008 at 1:30 AM, Kai Mütz <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  I have one form with multiple fields where I can edit a object. I want to
>  attach a document or image (of class Document) to the form/object using a
>  second upload form. This works fine if I first execute the upload, then edit
>  other fields and finally submit the form.
>
>  The problem occurs if I upload/attach a file subsequent to editing the
>  fields. The upload form reloads the page and the changes in the form are
>  gone. How can I avoid this? How can I catch the changes made before upload?
>  Can nested forms solve this?
>
>  Thanks in advance,
>  Kai
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: Page reload after file upload

2008-03-06 Thread Michael Sparer

unfortunately i haven't had the time to try it so far. but i'd be interested
if it works too ;-)

regards, 
Michael


Kai Mütz wrote:
> 
> [EMAIL PROTECTED] <> wrote:
>> a fancy solution would be to upload the file by means of an ajax
>> request - then the values would stay the same as the page doesn't
>> perform a full reload, that ain't as easy as it sounds, take a look a
>> this:
>> http://www.nabble.com/Submitting-an-ajaxform-with-multipart-form-d
>> ata-to15734375.html#a15734375 
> 
> Thanks for your quick reply.
> 
> Have you tried the multi file upload component? Does that work?
> 
> Kai 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Page-reload-after-file-upload-tp15869570p15870416.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: Page reload after file upload

2008-03-06 Thread Kai Mütz
[EMAIL PROTECTED] <> wrote:
> a fancy solution would be to upload the file by means of an ajax
> request - then the values would stay the same as the page doesn't
> perform a full reload, that ain't as easy as it sounds, take a look a
> this:
> http://www.nabble.com/Submitting-an-ajaxform-with-multipart-form-d
> ata-to15734375.html#a15734375 

Thanks for your quick reply.

Have you tried the multi file upload component? Does that work?

Kai 


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



Re: Page reload after file upload

2008-03-06 Thread Michael Sparer

a fancy solution would be to upload the file by means of an ajax request -
then the values would stay the same as the page doesn't perform a full
reload, that ain't as easy as it sounds, take a look a this:
http://www.nabble.com/Submitting-an-ajaxform-with-multipart-form-data-to15734375.html#a15734375

regards,
Michael

Kai Mütz wrote:
> 
> Hi,
> 
> I have one form with multiple fields where I can edit a object. I want to
> attach a document or image (of class Document) to the form/object using a
> second upload form. This works fine if I first execute the upload, then
> edit
> other fields and finally submit the form.
> 
> The problem occurs if I upload/attach a file subsequent to editing the
> fields. The upload form reloads the page and the changes in the form are
> gone. How can I avoid this? How can I catch the changes made before
> upload?
> Can nested forms solve this?
> 
> Thanks in advance,
> Kai
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Page-reload-after-file-upload-tp15869570p15869948.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Page reload after file upload

2008-03-06 Thread Kai Mütz
Hi,

I have one form with multiple fields where I can edit a object. I want to
attach a document or image (of class Document) to the form/object using a
second upload form. This works fine if I first execute the upload, then edit
other fields and finally submit the form.

The problem occurs if I upload/attach a file subsequent to editing the
fields. The upload form reloads the page and the changes in the form are
gone. How can I avoid this? How can I catch the changes made before upload?
Can nested forms solve this?

Thanks in advance,
Kai


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