addCallbackParam IE8 works sporadicly

UI Components for JSF
Post Reply
JMilnes
Posts: 110
Joined: 12 Feb 2010, 20:03

13 Oct 2010, 19:11

I'm notice this with only IE8 not Fire Fox.

(Samples from my test)

In the h:head

Code: Select all

<script type="text/javascript">

function handleWindowRequest(xhr, status, args)
{
   alert("hello");
}
in part of h:body

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>
Part the the java Class

Code: Select all

RequestContext context = RequestContext.getCurrentInstance();
System.out.println(context);
context.addCallbackParam("success", success);
These are my issues:

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.
JSF 2.3.0-FCS Mojarra
Prime faces 3.0.M4
Tomcat 7.0.20
IE 8

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 46 guests