Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7528811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:29:09+00:00 2026-05-30T04:29:09+00:00

Having an issue rendering jstl tags from within a facelets ui:composition My current xmlns

  • 0

Having an issue rendering jstl tags from within a facelets ui:composition

My current xmlns imports are:

xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"

When I deploy it renders the text as

 <c:forEach> ... 

within the html output.

Am I missing a dependency? Is the import incorrect? Is using jstl tags within facelets even possible?

Thanks a bunch!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:29:10+00:00Added an answer on May 30, 2026 at 4:29 am

    The given XML namespaces (note: that are not "xmlns imports") are correct for JSF 2.x. However, in Facelets 1.x, which is to be used standalone in JSF 1.x projects, the XML namespace for JSTL is different, it should not contain the /jsp path.

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

    But if you’re actually already using JSF 2.x (in future JSF 2.x questions please mention and tag accordingly), then you’re probably using a servletcontainer which doesn’t ship with JSTL included, such as Apache Tomcat. You’d need to download JSTL separately and drop it in /WEB-INF/lib folder. In that case the xmlns:c="http://java.sun.com/jsp/jstl/core" should work.

    See also:

    • Our JSTL tag wiki page

    Unrelated to the concrete question, using JSTL in Facelets is definitely possible. You should only make sure that you really understand the lifecycle of tag handlers like JSTL in JSF. See also JSTL in JSF2 Facelets… makes sense? You could alternatively also just use Facelets’ own <ui:repeat> tag instead of the <c:forEach>.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having an annoying rendering issue with IE my code is CSS : div
This time i'm having an issue with the actual rendering of my model. I
I'm having an issue with rendering a partial in a modal window. I've tried
I am having an issue with a custom control rendering its contents (child controls)
Having a strange rendering issue with Safari: I have a table inside a div.
having a slight issue where i am rendering a pdf (stored as a byte
Using Ajax pagination via the will_paginate gem I'm having an issue rendering my collection
I'm having an issue when first rendering a vertexbuffer with a program, and then
Hi all and good morning! The issue I'm having today is with IE7's rendering
I'm having an issue with IE not rendering a :hover effect. Here is my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.