[
https://issues.apache.org/jira/browse/WICKET-3473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pedro Santos updated WICKET-3473:
---------------------------------
Attachment: WICKET-3473.patch
Append post call handler and notify function from FunctionExecuter to after
javascript to be add in header is not working in 1.5.
Basically there are no guarantees of the successfully execution of the script
to be add in header, and the notify function may not be called.
The described issue can be fixed by executing post handlers in another thread
after set the new header. The attached patch also add try/catch statements to
Wicket.Head.addJavascript to turn visible possible exceptions.
> Inline Javascript evaluated is executed before head contributions are loaded
> ----------------------------------------------------------------------------
>
> Key: WICKET-3473
> URL: https://issues.apache.org/jira/browse/WICKET-3473
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.4.15, 1.5-RC2
> Environment: Firefox 3.6.13
> Reporter: Jannis Bloemendal
> Assignee: Igor Vaynberg
> Fix For: 1.4.17, 1.5-RC3
>
> Attachments: WICKET-3473.patch, WICKET-3473.patch,
> WICKET-3473_firefox.tar.gz, WICKET-3473_quickstart.tar.gz
>
>
> When a script added to the head loads an external script firefox postpones
> processing of the following script added to the head. This is a problem,
> because wicket assumes that head contributions are loaded immediately. So if
> for example a library is used as a head contribution it will not be loaded
> for it's actual usage.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira