You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2016/05/25 14:20:13 UTC

[jira] [Commented] (WICKET-6171) Problem with nested dialog with multipart form

    [ https://issues.apache.org/jira/browse/WICKET-6171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15300121#comment-15300121 ] 

Sven Meier commented on WICKET-6171:
------------------------------------

You can use the following workaround in HomePage.java:

  public final void showModalWindow(String aTitle, MyModalContent aContent)
  {
    modalWindow.show(aContent, aTitle);
    
    getRequestCycle().find(AjaxRequestTarget.class).add(rootForm);
  }

... i.e. always render the root form when your show a modal window. This way the form's multipart will always be up-to-date.

> Problem with nested dialog with multipart form
> ----------------------------------------------
>
>                 Key: WICKET-6171
>                 URL: https://issues.apache.org/jira/browse/WICKET-6171
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 6.22.0
>            Reporter: Rakesh A
>            Assignee: Sven Meier
>         Attachments: nested-multipart-modal-window.7z
>
>
> I observed that when I've a nested (second level) dialog with multipart form in it, after submitting this form, first level dialog form submit results a multipart form submit instead of normal form submit.
> I've attached a quick start to reproduce this.
> Steps:
> 1. Click the link on home page to open first level dialog
> 2. Click on the link to open 'multipart' dialog
> 3. Simply click 'Ok' on this dialog
> 4. Click 'Ok' on the first level dialog
> I expect form submit of Step#4 to be a normal form submit, but I see its a 'multipart' form submit.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)