-
Bug
-
Resolution: Fixed
-
Normal
-
7.0.5
-
Security Level: Jimmy
-
ZK 7.0.7
-
None
when using Server push it is possible, that the "dummy" request and a user event arrive with the same AU-request. A client side error happens, when the asynch operation invalidates a component which then gets detached by the user event.
The attached example simulates that case invalidating and removing a div at roughly the same time, the error happens around 95% of the time. In a rare cases the "echo" and "dummy" command are sent in separate AU-requests (then there is no problem).
The server side cause of the Client error lies in the implementation of:
org.zkoss.zk.au.AuResponse.JSONComponent.toJSONString() which will send "null" to the client.
At the client side the the "outer" function (see screenshot) cannot handle null values, causing errors.
Questions is if the null should be prevented on the server side or checked on the client side (possibly other AuResponses are affected too besides Invalidate/Outer)
- relates to
-
ZK-2839 Invoke a global javascript function doesn't work
- Closed