Passing properties to a custom control using xp:include

ⅰ亾dé卋堺 提交于 2019-12-11 14:06:58

问题


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?


回答1:


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?



来源:https://stackoverflow.com/questions/15325595/passing-properties-to-a-custom-control-using-xpinclude

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!