dynamic ui:include with el-expression?

后端 未结 1 622
忘了有多久
忘了有多久 2021-01-15 15:02

I\'m using JSF 2.0.

Is there a way to make this code work?


    

        
相关标签:
1条回答
  • 2021-01-15 15:20

    The <ui:include> runs during view build time (to generate the JSF component tree) while the <ui:repeat> runs during view render time (to generate the HTML output), which is after the view build time. Use <c:forEach> instead of <ui:repeat>, it runs during view build time as well.

    See also:

    • c:forEach vs ui:repeat in Facelets
    0 讨论(0)
提交回复
热议问题