<c:foreach>在JSF页面不生效,原因:
JSTL tags runs during view build time wherein the JSF component tree is produced based on the view source code. JSF components runs during view render time wherein HTML output is produced based on the JSF component tree. In other words, JSTL tags and JSF components doesn't run in sync as you'd expect from the coding.
解决版本:
改用<a4j:repeat>或者<ui:repeat>或者<t:dataList>
本文探讨了<c:foreach>在JSF页面中不生效的问题,并解释了JSTL与JSF组件运行时机不同步的原因。推荐使用<a4j:repeat>、<ui:repeat>或<t:dataList>作为替代方案。
2344

被折叠的 条评论
为什么被折叠?



