-
1. Re: Does RichFaces not support JSTL 1.1?
nbelaevski Feb 25, 2010 3:28 PM (in response to pmurphy)Hi Philip,
First of all, RichFaces is not handling JSTL tags, all work is done by JSF's ViewHandler, so RichFaces is compatible with any JSTL version, that's in turn, is compatible with the JSF version used.
Note that JSTL implementation is in fact used only when JSP is used as view language. Facelets mimic behaviors of JSTL tags and use "http://java.sun.com/jstl/core" namespace.
On JSP versions: according to this page http://faq.javaranch.com/java/JstlTagLibDefinitions, JSP 2.1 (JSTL 1.2) is using "http://java.sun.com/jsp/jstl/core". As JSF 1.2 requires JSP 2.1, all RichFaces 3.2+ versions need to use this namespace. For older RichFaces 3.1.x versions that are compatible with both JSF 1.1 & JSF 1.2, both namespaces can be used, depending on the application server & JSF version used.
-
2. Re: Does RichFaces not support JSTL 1.1?
pmurphy Feb 25, 2010 4:22 PM (in response to nbelaevski)Hi Nick,
Thanks for the reply. I think the most important point that I missed was the fact that "Facelets mimic behaviors of JSTL tags and uses the "http://java.sun.com/jstl/core" namespace". Would this imply that if all my UI code is using RichFaces and JSF (with some JSTL mimicked tags) and I am not using JSP, that I should only have to use the "http://java.sun.com/jstl/core" namespace". Or in other words, the "http://java.sun.com/jsp/jstl/core" namespace is purely a JSP namespace and has nothing to do with JSF.
Thanks,
Philip
PS Other developers reading this thread might also find this article useful: http://www.znetdevelopment.com/blogs/2008/10/18/jstl-with-jsffacelets/
-
3. Re: Does RichFaces not support JSTL 1.1?
nbelaevski Feb 25, 2010 5:35 PM (in response to pmurphy)Right, Facelets use http://java.sun.com/jstl/core namespace (it's coded in com.sun.facelets.tag.jstl.core.JstlCoreLibrary.Namespace constant). And http://java.sun.com/jsp/jstl/core is namespace of JSTL JSP tags, that are independent of JSF. -
4. Re: Does RichFaces not support JSTL 1.1?
pmurphy Feb 26, 2010 7:02 AM (in response to nbelaevski)Hi Nick,
Just a note of thanks for explaining this. That clears up my confusion about these tags.
Regards,
Philip