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/07/06 09:03:10 UTC

[jira] [Resolved] (WICKET-6197) Some JavaScript not executed on Firefox and multipart Forms

     [ https://issues.apache.org/jira/browse/WICKET-6197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sven Meier resolved WICKET-6197.
--------------------------------
    Resolution: Not A Bug
      Assignee: Sven Meier

I have no clue why window.print() does not work when called directly from the Ajax response evaluation. It might just be a timing issue caused by loading the iframe for the multipart request.

Since this issue appears with Firefox only and we have a workaround, I don't see the need nor the possibility to change anything in Wicket.

> Some JavaScript not executed on Firefox and multipart Forms
> -----------------------------------------------------------
>
>                 Key: WICKET-6197
>                 URL: https://issues.apache.org/jira/browse/WICKET-6197
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 7.3.0
>         Environment: Windows 7x64, Windows 10 and Linux, Firefox Developer Edition 49.0.a2 and Stable 47
>            Reporter: Robert Niestroj
>            Assignee: Sven Meier
>         Attachments: IMG_05072016_162356.png, qs.zip
>
>
> When i have a multipart Form and an AjaxSubmitLink where i want to open the the browsers print dialog it is not working. 
>          protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
>             super.onSubmit(target, form);
>             target.appendJavaScript("window.print();");
>          }
> However alert(1); is working. 
> When i remove setMultiPart(true) from the form it is working so i has something to do with it. It might be the dot.
> it is not working under Firefox, it works under Chrome.
> When i click my print button a few times in quick succession firefox shows a dialog "Prevent this page from creating additional dialogs" - see screenshot.



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