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 component tree until we find a
>  form...
> 
> can you create a quickstart and attach it to the jira issue?
> 
> -igor
> 
> On Thu, Dec 3, 2009 at 10:43 PM, Doug Leeper <douglee...@yahoo.com> wrote:
> > 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 formId is the inner "form" but the
> > Form class actually generates a "div" element instead of a "form" (not
> > the root form) and removes the enctype.  Since the enctype has been
> > removed, the Javascript cannot create the iframe as it looking to see if
> > the form has the enctype="multipart/form-data"...hence the request is
> > being sent via Ajax still and not the iframe.
> >
> > So my thought is that that in the Form.onComponentTag() it should not
> > remove the enctype if isMultiPart() is true but add a variable enctype to
> > the div...but not sure if this is allowed.
> >
> > Can someone verify this as this is not my area of expertise (JavaScript
> > or Ajax internals)?
> >
> > Thanks
> > - Doug
> > --
> > View this message in context:
> > http://old.nabble.com/FileUploadField-in-a-ModalWindow-%28wicket-1.4.3%29
> >--tp26577255p26635788.html Sent from the Wicket - User mailing list
> > archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

-- 
Ilja Pavkovic
Leitung Entwicklung und Projektsteuerung, Gesellschafter

Bitte beachten Sie unsere neuen Kontaktdaten!

Apliki
Psychologische IT-Beratung
Tempelhofer Ufer 1a
10961 Berlin

Fon +49 · 30 · 99277999 · 0
Mob +49 · 171 · 9342465
Mail ilja.pavko...@apliki.de
Netz www.apliki.de
__________________________________________________________________
Apliki GmbH & Co. KG, Berlin, AG Charlottenburg, HRA 39114

Persönlich haftend: 
Apliki Beteiligungs GmbH, Berlin, AG Charlottenburg, HRB 104921
vertreten durch: Steffen Eßers, Björn Balazs, Ilja Pavkovic

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to