使用 xp:include 将属性传递给自定义控件 [英] Passing properties to a custom control using xp:include

查看:30
本文介绍了使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆