使用 xp:include 将属性传递给自定义控件 [英] Passing properties to a custom control using xp:include
问题描述
当使用包含页面将自定义控件动态加载到 XPage 时,是否可以将自定义属性值作为包含的一部分传递给自定义控件?
Peter,包含页面不会加载自定义控件,而是加载另一个 XPage.页面没有属性.但是...页面成为组件树的一部分,因此您可以使用 getComponent("thecomponent").getParameterMap
访问其包含的控件(在我看来,可能会略有不同)>
这有帮助吗?
When using an Include Page to dynamically load a custom control onto an XPage, is there a way to pass custom property values to the custom control as part of the include?
Peter, the include page doesn't load a custom control but another XPage. Pages don't have properties. However... the page becomes part of the component tree, so you have access to its contained controls using getComponent("thecomponent").getParameterMap
(Off my head, might be called slightly different)
Does that help?
这篇关于使用 xp:include 将属性传递给自定义控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!