Conditionally including a Facelet file via

后端 未结 1 732
终归单人心
终归单人心 2021-01-28 10:11

I have 2 Facelets files (index.xhtml and report.xhtml). I use the RichFaces to load the report into the index. Works fine.

相关标签:
1条回答
  • 2021-01-28 10:57

    try to surround your ui:include tag with ui:fragment as follows :-

    <ui:fragment rendered="#{indexService.contentName eq 'report'}">
         <ui:include src="report.xhtml" /> 
    </ui:fragment>
    
    0 讨论(0)
提交回复
热议问题