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

  • SEARCH
  • Home
  • 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 7488039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T14:43:16+00:00 2026-05-29T14:43:16+00:00

web.xml <!– JavaServer Faces –> <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>server</param-value> </context-param> <context-param> <param-name>javax.faces.CONFIG_FILES</param-name> <param-value>/WEB-INF/faces-config.xml,/WEB-INF/faces-managed-beans.xml,/WEB-INF/faces-navigation.xml</param-value> </context-param> <context-param>

  • 0

web.xml

<!-- JavaServer Faces -->
<context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
</context-param>
<context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml,/WEB-INF/faces-managed-beans.xml,/WEB-INF/faces-navigation.xml</param-value>
</context-param>
<context-param>
    <param-name>org.richfaces.SKIN</param-name>
    <param-value>blueSky</param-value>
</context-param>
<context-param>
    <param-name>org.richfaces.CONTROL_SKINNING</param-name>
    <param-value>enable</param-value>
</context-param>
<context-param>
    <param-name>com.sun.faces.validateXml</param-name>
    <param-value>true</param-value>
</context-param>
<filter>
    <display-name>RichFaces Filter</display-name>
    <filter-name>richfaces</filter-name>
    <filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
    <filter-name>richfaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<!-- Faces Servlet -->
<servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>
<listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
    <listener-class>
        org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<login-config>
    <auth-method>BASIC</auth-method>
</login-config>

faces-config.xml

<?xml version="1.0" encoding="UTF-8"?>
<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<validator>
    <validator-id>com.test..view.validator.Regex</validator-id>
    <validator-class>com.test..view.validator.regex.RegexValidator</validator-class>
</validator>
<application>
    <locale-config>
        <default-locale>en</default-locale>
    </locale-config>
    <message-bundle>com.test..view.resources.bundle.Messages</message-bundle>
</application>
</faces-config>

JSP file

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<html> 
<head>
</head>
<body onload="alert(\"test\")">
    It works <hr/>
<f:view>
<h:form>
<ui:repeat value="${buildVehicleBean.buildVehicleBO.allVehicles}" var="var1">
    <h:outputText value="#{var1.modelLineName}"/><br/>
</ui:repeat>

</h:form>
</f:view>
</body>

</html>

When I view source in browser, I see

...
<ui:repeat value="[com.test.model.bo.CarBO@3f9ba5,
com.test.model.bo.CarBO@38662,
com.test.model.bo.CarBO@16b9c59,
com.test.model.bo.CarBO@1e5bbb0,
com.test.model.bo.CarBO@1855620,
com.test.model.bo.CarBO@d984ff,
com.test.model.bo.CarBO@1dd4000,
com.test.model.bo.CarBO@100bb12,
com.test.model.bo.CarBO@f9d8ce]" var="var1">


<br/>
</ui:repeat>
...

As you see nothing other than ‘br’ tag within ui:repeat.

It seems very simple to me, obviously I am missing something somewhere, it is hard to find it. If I use something simple like a constant value it works

<h:outputText value="#{12345}"/><br/>
<h:outputText value="#{buildVehicleBean.testDouble}"/><br/>

If I use ‘#’ instead of ‘$’ in the following line it gives error

<ui:repeat value="${buildVehicleBean.buildVehicleBO.allVehicles}" var="var1">

I new to JSF and coming from JSP & Struts background.

  • 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-29T14:43:17+00:00Added an answer on May 29, 2026 at 2:43 pm

    The <ui:repeat> tag is part of Facelets view technology. But you’re still using the ancient JSP view technology. They cannot be used together. You cannot use Facelets tags in JSP or the other way round. Basically, Facelets is the successor of JSP.

    You have 2 options:

    1. Replace JSP by Facelets. This is quite a work if you have a lot of existing JSP pages though. For references, check the following links:

      • Facelets 1.x developer guide
      • Migrating from JSF 1.2 to JSF 2.0 (for the case there’s room to upgrade to JSF2 as well)
    2. Use JSTL <c:forEach> or RichFaces’ <a4j:repeat> instead. They offer similar syntax and functionality. You should only take into account that the JSTL one runs during view build time while the RichFaces’ one runs during view render time. Based on your web.xml, you seem to be already using RichFaces. So just declare the a4j taglib in top of JSP and use the <a4j:repeat> as follows:

      <%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
      ...
      <a4j:repeat value="#{buildVehicleBean.buildVehicleBO.allVehicles}" var="var1">
          <h:outputText value="#{var1.modelLineName}"/><br/>
      </a4j:repeat>
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my config in web.xml <context-param> <param-name> org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name> <param-value>/WEB-INF/tiles.xml</param-value> </context-param> <listener> <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class> </listener>
I've added some parameters in my web.xml config file, as follow: <context-param> <param-name>service1</param-name> <param-value>http://www.example.com/example2.html</param-value>
i've got this in my web.xml <context-param> <param-name>defaultHtmlEscape</param-name> <param-value>true</param-value> </context-param> and this in a
I have the following in my web.xml: <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext-*.xml</param-value> </context-param> I have 2
I'm setting the LoadStyleStrategy in my web.xml to ALL . <context-param> <param-name>org.richfaces.LoadStyleStrategy</param-name> <param-value>ALL</param-value> </context-param>
In my web.xml I have: <filter> <display-name>RichFaces Filter</display-name> <filter-name>richfaces</filter-name> <filter-class>org.ajax4jsf.Filter</filter-class> <init-param> <param-name>enable-cache</param-name> <param-value>true</param-value> </init-param>
When I have in web.xml: <param-name>transformWsdlLocations</param-name> <param-value>true</param-value> and <servlet-mapping> <servlet-name>personWS</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> auto-generated WSDL
my web.xml config is <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> </filter> <filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> here is
Here is my config in web.xml file <listener> <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class> </listener> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter>
I have an error page error.jsf mentioned in the web.xml : <error-page> <exception-type>javax.faces.application.ViewExpiredException</exception-type> <location>/viewExpired.jsp</location>

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.