(Samples from my test)
In the h:head
Code: Select all
<script type="text/javascript">
function handleWindowRequest(xhr, status, args)
{
alert("hello");
}
Code: Select all
<p:dialog modal="true" widgetVar="detailDialog" width="800" height="400">
<p:commandButton value="Update" actionListener="#{transferLocationController.doActionUpdate}"
oncomplete="handleWindowRequest(xhr, status, args)"/>
</p:dialog>
Code: Select all
RequestContext context = RequestContext.getCurrentInstance();
System.out.println(context);
context.addCallbackParam("success", success);
1. In IE8 the doActionUpdate gets called 2 times. The first time the context is null. Fire fox it is only called once, which is what is expected.
2. In IE8 the function handleWIndowRequest does not always get called. It is sporadic when it does shows "Hello". Fire fox it shows every time.
3. The dialog in IE8 closes after the update button is pressed. In FF the dialog stays open -which is what I expected.