JSF dynamically include src in “ui:include src=”#{bean.pagePath}"

前端 未结 2 1787
说谎
说谎 2020-12-03 23:25

I tried to include multiple source page path using ui:include tag in different tabs. The problem is when i gave the source page path as static one means that page will be sh

2条回答
  •  伪装坚强ぢ
    2020-12-04 00:20

    The above Community's answer hasn't worked for dynamic tabView

    If i use dynamic="true" and c:foreach for tabs, when i add or remove a tab, do update @tabViewId, the tabview will reload "All content of existed tabs" => this is not the way to attribute "dynamic" work, it's not lazy.

    My project has a problem with this, i had to customize the method encodeEnd of TabViewRenderer and do something else, but it's not simple.

    I wondering whether there is a way to include XHTML templates at rendered time?

提交回复
热议问题