1

I'm using a property definition to pass a document datasource into a custom control.

Is there a way to bind that datasource to the page the same way as if I had defined it on the page itself?

What I'm looking for is a way to use my passed-in ds for simple data binding in controls avoiding computed EL statements. What's more important: is there a way to address the datasource's event handlers (like querySaveDocument) from inside my custom control? Or can I only address them in the page where the ds has been defined originally?

4

1 回答 1

2

自定义控件启蒙中描述了该方法以及有关自定义控件的一些其他想法。看看然后使用汤米的图书馆

于 2013-04-18T02:23:18.097 回答