ZK5: Wiring components in a nested ID space
4 Mar 2010 09:30:48 GMT
4 Mar 2010 13:58:14 GMT
4 Mar 2010 13:58:14 GMT
I remember to see some code here in the forum like onChange$win1$win2$username()
PS: here is older stuff for such a design
@Override
public void afterCompose() {
processRecursive(this, this);
// Components.wireVariables(this, this); // auto wire variables
// Components.addForwards(this, this); // auto forward
}
/**
* Go recursive through all founded components and wires all vars and added
* all forwarders for ALL window components. <br>
*
* @param main
* @param child
*/
@SuppressWarnings("unchecked")
private void processRecursive(Window main, Window child) {
Components.wireVariables(main, child);
Components.addForwards(main, this);
List<Component> winList = child.getChildren();
for (Component window : winList) {
if (window instanceof Window) {
processRecursive(main, (Window) window);
}
}
}
ZK - Open Source Ajax Java Framework
Does the new ZK5 Feature "Wiring components in a nested ID space" also work for autowiring events?
For example:
public void onChange$i$username() { // do something... }If not, will this functionality be implemented in feature releases?
Thanks in advance.
Best regards,
tomCat