Revision history [back]

click to hide/show revision 1
initial version

answered 2018-06-25 10:50:39 +0800

cor3000 gravatar image cor3000

ZK Team

That's quite a rare question and I haven't tested this yet. Here's where I'd put a breakpoint to see Ho ZK does it internally when it encounters the annotation:

https://github.com/zkoss/zk/blob/v8.5.1.2/zkbind/src/org/zkoss/bind/xel/zel/BindELContext.java#L326

I assume the 3 String based parameters will be straight forward. Except for the first parameter Binding srcBinding. You'll need to find it inside the current Binder instance:

e.g. in your @Init-method of your ViewModel:

@Init public void init(@ContextParam(ContextType.BINDER BinderCtrl binderCtrl) { binderCtrl.getLoadPromptBindings(...); }

see: https://github.com/zkoss/zk/blob/v8.5.1.2/zkbind/src/org/zkoss/bind/sys/BinderCtrl.java#L171

As said I haven't tested this, nor do I exactly know that's what you want. However I'd start looking/testing there.

That's quite a rare question and I haven't tested this yet. Here's where I'd put a breakpoint to see Ho ZK does it internally when it encounters the annotation:

https://github.com/zkoss/zk/blob/v8.5.1.2/zkbind/src/org/zkoss/bind/xel/zel/BindELContext.java#L326

I assume the 3 String based parameters will be straight forward. Except for the first parameter Binding srcBinding. You'll need to find it inside the current Binder instance:

e.g. in your @Init-method of your ViewModel:

@Init
public void init(@ContextParam(ContextType.BINDER BinderCtrl binderCtrl) {
  binderCtrl.getLoadPromptBindings(...);
}

}

see: https://github.com/zkoss/zk/blob/v8.5.1.2/zkbind/src/org/zkoss/bind/sys/BinderCtrl.java#L171

As said I haven't tested this, nor do I exactly know that's what you want. However I'd start looking/testing there.

That's quite a rare question and I haven't tested this yet. Here's where I'd put a breakpoint to see Ho how ZK does it internally when it encounters the annotation:

https://github.com/zkoss/zk/blob/v8.5.1.2/zkbind/src/org/zkoss/bind/xel/zel/BindELContext.java#L326

I assume the 3 String based parameters will be straight forward. Except for the first parameter Binding srcBinding. You'll need to find it inside the current Binder instance:

e.g. in your @Init-method of your ViewModel:

@Init
public void init(@ContextParam(ContextType.BINDER BinderCtrl binderCtrl) {
  binderCtrl.getLoadPromptBindings(...);
}

see: https://github.com/zkoss/zk/blob/v8.5.1.2/zkbind/src/org/zkoss/bind/sys/BinderCtrl.java#L171

As said I haven't tested this, nor do I exactly know that's what you want. However I'd start looking/testing there.

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More