Reading Bean List Using Jstl And Assigning To Javascript Variable In Facelets
I am using facelet and draw function has jstl tag:
Solution 1:
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.
Post a Comment for "Reading Bean List Using Jstl And Assigning To Javascript Variable In Facelets"