问题
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