Reading bean list using jstl and assigning to javascript variable in facelets

拈花ヽ惹草 提交于 2019-12-02 08:31:22
BalusC

Surely JSTL works in Facelets. There are only some technical implications which can only be understood by really understanding the Facelets lifecycle: JSTL in JSF2 Facelets... makes sense?

As to your concrete problem, you most likely forgot to declare the JSTL taglib in the XML namespace.

xmlns:c="http://java.sun.com/jsp/jstl/core"

Not doing so would cause the JSTL tags not being interpreted at all and end up in a syntax error in the generated HTML/JS code because JSTL tags are not recognizeable by the webbrowser as valid HTML/JS code. Rightclick page in webbrowser and do View Source. You should not see any unparsed/plain JSTL tags in there.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!