[richfaces-issues] [JBoss JIRA] Updated: (RF-7261) Many samples use the wrong URI for the JSTL namespace in Facelets

Scott Langley (JIRA) jira-events at lists.jboss.org
Tue May 26 15:27:56 EDT 2009


     [ https://jira.jboss.org/jira/browse/RF-7261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Langley updated RF-7261:
------------------------------

    Description: 
Many of the RichFaces Facelets sample files use this URI for importing JSTL:

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

For Facelets, the URL for importing the JSTL namespace should be:

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

This can confuse users as to the proper use of JSTL with RichFaces.

Examples of such files:

http://anonsvn.jboss.org/repos/richfaces/tags/3.3.1.GA/samples/layout-sample/src/main/webapp/pages/layout.xhtml


  was:
For the below code fragment:

 	<c:forEach var="iterator" begin="1" end="3">
		Test<br/> 
	</c:forEach>

When not using the <rich:page> tag, the example code interprets the <c:forEach> tag and renders:

		Test<br />
		Test<br />
		Test<br />

When using the <rich:page> tag, the <c:forEach> tags are not interpreted but are rendered exactly as written:

    <c:forEach var="iterator" begin="1" end="3">
	Test<br /> 
    </c:forEach>

Here's the complete code for this version:

<rich:page 
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
 	markupType="xhtml"
	contentType="text/html"
	>	
 	<c:forEach var="iterator" begin="1" end="3">
		Test<br/> 
	</c:forEach>
</rich:page>

       Priority: Minor  (was: Major)


> Many samples use the wrong URI for the JSTL namespace in Facelets
> -----------------------------------------------------------------
>
>                 Key: RF-7261
>                 URL: https://jira.jboss.org/jira/browse/RF-7261
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.3.1
>         Environment: Windows XP Pro
> Sun JavaEE SDK 5.07
> Apache Tomcat 6.0.18
>            Reporter: Scott Langley
>            Assignee: Nick Belaevski
>            Priority: Minor
>
> Many of the RichFaces Facelets sample files use this URI for importing JSTL:
>    xmlns:c="http://java.sun.com/jsp/jstl/core"
> For Facelets, the URL for importing the JSTL namespace should be:
>   xmlns:c="http://java.sun.com/jstl/core"
> This can confuse users as to the proper use of JSTL with RichFaces.
> Examples of such files:
> http://anonsvn.jboss.org/repos/richfaces/tags/3.3.1.GA/samples/layout-sample/src/main/webapp/pages/layout.xhtml

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list