-
FEATURED COMPONENTS
First time here? Check out the FAQ!
On version 3.6 the binder init users setVariable which makes the "binder" variable available at space scope. Now on version 5 get/setVariable is deprecated and it uses setAttribute which sets on the component scope by default.
Is this a bug?
It is spec. change. Does that cause any issue?
I see...
Well it's kind a issue, because all over my app I use
binder = spaceOwnerComp.getVariable("binder", false);
but the target in the binding init is a inner component.
So as things are now, I can see only two options:
1. update all my zul pages to target the space owner
2. change all my composers to look for the binder in the children component.
OK. We have added a compatible library property for such case. Please specify in WEB-INF/zk.xml
<library-property> <name>org.zkoss.zkplus.databind.AnnotateDataBinderInit.compatible</name> <value>true</value> </library-property>
And AnnotateDataBinderInit will store the created DataBinder in space scope rather than the component scope
You might have to wait for next Fresh release.
That's great Henri!
Thank you very much!
Asked: 2010-01-11 13:31:38 +0800
Seen: 446 times
Last updated: Jan 14 '10