ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

zk 6.0.0-RC UUID generation

nikomo
2 Feb 2012 01:58:00 GMT
2 Feb 2012 01:58:00 GMT

Hello,

Need: Access to client component by javascript at same request, which creates component.

ZK 5: Uuid is setted when component is created. => Client component can be accessed by Clients.evalJavaScript -method.

ZK 6: Uuid is setted when component is drawed to client. So, there is no valid id to reference component at client.

Solution: Force id and uuid to component afren creation, but how?

benbai
5 Feb 2012 02:57:41 GMT
5 Feb 2012 02:57:41 GMT

Hi nikomo,

You can try assign id to components, and access them by

zk.Widget.$(jq('$id'))

Regards,
ben

nikomo
5 Feb 2012 04:29:52 GMT
5 Feb 2012 04:29:52 GMT

Hello Ben,

This do not solve problem. I can pass id from component to client, and there I know the id of current widget. Problem is, that I need to initialize that component and bind it to another one, which id need to pass to first component. It need to detect example mouse over or another kind on behavior at client.

At ZK 5 I just asked that parameter components uuid at java when initializing, and passed it to widget, which needs to access that parameter component.

But thanks for help.

Best Regards, Niko