Menu

#2776 Window onCreate fired twice for Execution#sendRedirect()

5.0.7
closed
nobody
General (233)
5
2011-07-15
2011-07-12
No

test.zul
<zk>
<window onCreate='System.out.println("ONCREATE")'></window>
<button label="hello" onClick='Executions.getCurrent().sendRedirect("/test.zul")'></button>
</zk>

Click on "hello" and it prints ONCREATE twice.
Only occurs on FF3.6.18 and IE7
Note:
1.In Firebug net panel I see one aborted GET request.
2.Removing the leading "/" in sendRedirect URL is a workaround for consistent behavior across all browsers.

Discussion

  •  chen asuka

    chen asuka - 2011-07-15
    • status: open --> closed
     
  •  chen asuka

    chen asuka - 2011-07-15
     

Log in to post a comment.