0 Replies Latest reply on Aug 27, 2010 12:28 PM by Chris Mathrusse

    dynamic ui:include difficulty

    Chris Mathrusse Newbie

      I'm attempting to dynamically include a page based upon a variable value. I'm running my application in GlassFish v3.0.1 and I'm using JSF2 with RichFaces 4. I've read the following articles pertaining to this:






      and I believe that I have my code correct to work, but I can't seem to get the <c:forEach> tag to work.


      <h:panelGroup layout="block">

           <c:forEach var="record" items="#{backer.records}">

                <ui:include src="#{record.page}">

                     <ui:param name="paramBean" value="#{record}" />





      I've got the namespace included for the jstl library:


      <ui:composition template="layout.xhtml"









      but that gave me the following error when loading the page:


      This page contains the following errors:

      error on line 16 at column 26: Namespace prefix c on forEach is not defined

      Below is a rendering of the page up to the first error.


      So I included the jstl namespace in my layout.xhtml template, but that only resulted in the following error message being displayed on my web page.


      Warning: This page calls for XML namespace http://java.sun.com/jstl/core declared with prefix c but no taglibrary exists for that namespace.


      I've added the following to my pom.xml to ensure that I have the jstl libraries available but it did not seem to have any effect.















      So what am I missing? Why can't I get this to work?


      Thanks for the help..