-
Bug
-
Resolution: Fixed
-
Normal
-
6.5.0
-
None
-
None
refer to the sample code,
1. visit URL for example
listaExampleStatic2.zul?record=10
2. click the "Importo" column header twice, will cause Unknown stub js error. (when using zkmax.jar, without zkmax.jar, it's ok, ZK will show UI correctly)
The reason is with zkmax.jar, the UiEngineExtension will replace the NativeComponent into StubComponent or StubsComponent, to minimize server side memory usage
When render StubComponent or StubsComponent, ZK will render only UUID to client, from the code, it seems the widget shall still remain in client side, refer to the mount.js
if ((stub = type == "#stub") || type == "#stubs") {
....
}
but zk client side engine cannot find the widget, cause the JS error.
The workaround is extends from HtmlNativeComponent, and invoke setAttribute(Attributes.STUB_NATIVE, false);
This can prevent ZK UI engine replace it with StubComponent.