Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-12-11 Thread Ilja Pavkovic | Apliki
Hi, the same problem occurs with an UploadProgressBar in a nested form. The nested form is a div having an onsubmit-tag holding the ajax call to the progress bar. Best Regards, Ilja Am Freitag, 4. Dezember 2009 08:38:18 schrieb Igor Vaynberg: sounds like we may have to search up the

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-12-11 Thread Ilja Pavkovic
Hi, UploadProgressBar in a nested form also does not work (onsubmit added to a div representing the inner form, but should be added to the onsubmit button of the outer form element). a *very hacky* solution is something like boolean added = false; protected void onBeforeRender() {

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-12-04 Thread Igor Vaynberg
1.4 -igor On Fri, Dec 4, 2009 at 2:13 PM, Doug Leeper douglee...@yahoo.com wrote: 1.4 trunk or 1.5 trunk? -- View this message in context: http://old.nabble.com/FileUploadField-in-a-ModalWindow-%28wicket-1.4.3%29--tp26577255p26641953.html Sent from the Wicket - User mailing list archive

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-12-04 Thread Doug Leeper
I have created a quick start and attached it to WICKET-2595. I have also included my suggested fixes to Form.java and wicket-ajax.js. It got past the problem of not submitting in an iframe but my AjaxButton.onSubmit is not being called and there are no errors generated. Hope this helps. -

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-12-03 Thread Doug Leeper
I was also able to reproduce this issue. When I stepped through the code with NestedForm, the Form.handleMultiPart() never creates a MultipartWebRequest due to the original request is identified as an AjaxRequest (as seen by the following code snippet. code protected boolean

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-12-03 Thread Igor Vaynberg
please try with trunk and let us know -igor On Thu, Dec 3, 2009 at 8:50 PM, Doug Leeper douglee...@yahoo.com wrote: I was also able to reproduce this issue. When I stepped through the code with NestedForm, the Form.handleMultiPart() never creates a MultipartWebRequest due to the

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-12-03 Thread Igor Vaynberg
the original issue: https://issues.apache.org/jira/browse/WICKET-2491 that fixed this i believe. -igor On Thu, Dec 3, 2009 at 9:24 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: please try with trunk and let us know -igor On Thu, Dec 3, 2009 at 8:50 PM, Doug Leeper

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-12-03 Thread Doug Leeper
Found the code where the iframe is being used (resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js) When looking at the generated html for the modal window in a nested form situation, it shows the submit button actually being submitted by wicketSubmitFormById(formId,...) The

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-12-01 Thread TahitianGabriel
I've tried what you said, and indeed if you remove the nested form, it works like a charm for the ajax-upload. BUT, it breaks other thing (like DatePicker in IE that do not work anymore in modal window). It looks like a bug, so maybe you can open a jira... Regards, Gabriel. Martin Dietze

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-12-01 Thread Martin Dietze
On Tue, December 01, 2009, TahitianGabriel wrote: It looks like a bug, so maybe you can open a jira... Just added WICKET-2595. This bug may be related to WICKET-2433, but that one was supposed to be fixed in Wicket 1.4.2 while this problem was observed with 1.4.3. Cheers, M'bert --

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-11-30 Thread Igor Vaynberg
try running wicket-examples and see if the ajax upload example works for you there -igor On Mon, Nov 30, 2009 at 8:11 AM, Martin Dietze d...@fh-wedel.de wrote: Hi,  I recently upgraded to wicket 1.4.3 as I heard that from version 1.4.1 and above file uploads are seamlessly handled even in

RE: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-11-30 Thread Stefan Lindner
The good news are: I did the same a few days ago: file upload in a ModalWindow with an AjaxButton for submitting the form containing the file input field. And it works fine. With all browsers. Does it work without ModalWindow? Stefan -Ursprüngliche Nachricht- Von: Martin Dietze

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-11-30 Thread Martin Dietze
On Mon, November 30, 2009, Stefan Lindner wrote: And it works fine. With all browsers. Does it work without ModalWindow? I've had no time to check yet. The last thing I did today was try out the ajax upload example from wicketexamples which worked. I'll take a look at the sources tomorrow and

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-11-30 Thread TahitianGabriel
I've got the same behaviour here : the getFileUpload() return null inside a ModalWindow (Wicket 1.4.3, Firefox 3.5.5/IE 8). The test on line 70 of FileUploadField if (request instanceof IMultipartWebRequest) is always false, so I guess the multipart is not set correctly, even if I've put

RE: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-11-30 Thread Stefan Lindner
30.11.2009 22:30 An: users@wicket.apache.org Betreff: Re: FileUploadField in a ModalWindow (wicket 1.4.3)? I've got the same behaviour here : the getFileUpload() return null inside a ModalWindow (Wicket 1.4.3, Firefox 3.5.5/IE 8). The test on line 70 of FileUploadField if (request instanceof

RE: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-11-30 Thread TahitianGabriel
I've added the UploadWebRequest and I still have the same problem. Is UploadWebRequest not only for UploadProgressBar as stated in the Javadoc? Stefan Lindner wrote: Do you have @Override protected WebRequest newWebRequest(HttpServletRequest servletRequest) {