【发布时间】:2023-03-04 00:10:01
【问题描述】:
有问题: The class behind ui:include JSF tag 发现需要使用IncludeHandler来使用
<ui:include>
以编程方式。
但是,构造函数需要一个“配置”参数,我不知道如何设置它。
请举例说明如何使用 IncludeHandler 进行简单的包含,例如
<ui:include src="include.xhtml" />
我的 jsf 组件目前是以编程方式构建的,但我想包含一些写为“.xhtml”的部分。所以最后一个网页设计师只需要一个像
这样的组件<fg:generator></fg:generator>
和一些“.xhtml”文件来玩弄样式。如果有比 IncludeHandler 更好的方法(仍然需要使用 Java),请告诉我:)
【问题讨论】:
标签: java jsf-2 include facelets custom-component