Peter Presnell
Peter Presnell

Reputation: 380

Passing properties to a custom control using xp:include

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?

Upvotes: 1

Views: 437

Answers (1)

stwissel
stwissel

Reputation: 20384

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?

Upvotes: 1

Related Questions