JSTL Not Working In JSF 2.0

By , 26 April 2011

JSTL Not Working In JSF 2.0

If you've just upgraded your webapp from JSF 1.2  + Facelets to JSF 2.0 and discovered that your JSTL tags don't seem to be working anymore it may be because the xmlns declaration is different in JSF 2.0. It should look like this:

xmlns:c="http://java.sun.com/jsp/jstl/core"
JSTL Not Working In JSF 2.0

I think Facelets 1.x used a non-standard namespace below, possibly by mistake (although this namespace makes more sense as JSTL is independent from JSP).

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

Same goes for the functions library I would guess.

About Roger Keays

JSTL Not Working In JSF 2.0

Roger Keays is an artist, an engineer, and a student of life. He has no fixed address and has left footprints on 40-something different countries around the world. Roger is addicted to surfing. His other interests are music, psychology, languages, the proper use of semicolons, and finding good food.

Leave a Comment

Please visit https://rogerkeays.com/blog/jstl-not-working-in-jsf-2. to add your comments.