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 7893923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:15:34+00:00 2026-06-03T07:15:34+00:00

i have a problem with rendering #{} inside JSF page. I’m using Mojarra 2.1.5

  • 0

i have a problem with rendering #{} inside JSF page.

I’m using Mojarra 2.1.5 and JBoss 7

Example:

JSF Page

<h:inputText value="#{bean.name}"/>

faces-config.xml

<managed-bean>
   <managed-bean-name>bean</managed-bean-name>
   <managed-bean-class>com.Bean</managed-bean-class>
   <managed-bean-scope>session</managed-bean-scope>
</managed-bean>

HTML Output

#{bean.name}

Question

  1. Why i don’t see proper values from bean ?
  2. Why i’m getting string instead of nothing ?

UPDATED

web.xml content:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
<!--
Automatically created by Apache Tomcat JspC.
-->
<web-app 
    xmlns="http://java.sun.com/xml/ns/javaee"
    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-app_3_0.xsd"
    version="3.0">

    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
</web-app> 

Thanks

  • 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-06-03T07:15:36+00:00Added an answer on June 3, 2026 at 7:15 am

    As per your updated question:

    I’m using Mojarra 2.1.5 and JBoss 7

    As per your comments:

    In my WEB-INF/lib directory i have only: jsf-api-1.2_09, jsf-facelets-1.1.14.jar and jsf-impl-1.2_09.jar… and to be honest i’m not quite sure if i need all of them… In web-app tag i had version 2.5

    JBoss 7 already ships with a JSF 2.x implementation. You do not need to supply any JSF library yourself, for sure not of an older spec version which would only conflict everything. Remove those jsf-*.jar files from your webapp. Also, since JSF 2.0, Facelets is bundled in JSF library. Remove the jsf-facelets-*.jar file as well.

    JBoss 7 is a Servlet 3.0 compatible container. Redeclare your web.xml to comply Servlet 3.0:

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app 
        xmlns="http://java.sun.com/xml/ns/javaee"
        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-app_3_0.xsd"
        version="3.0">
    
        <!-- Config here. -->
    
    </web-app>
    

    Further you also need to make sure that faces-config.xml complies JSF 2.0:

    <?xml version="1.0" encoding="UTF-8"?>
    <faces-config
        xmlns="http://java.sun.com/xml/ns/javaee"
        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_2_0.xsd"
        version="2.0">
    
        <!-- Config here. -->
    
    </faces-config>
    

    Please make sure that you aren’t reading tutorials targeted on JSF 1.x. JSF 2.x is a major spec change. Make sure that you’re reading JSF 2.x targeted resources/books/tutorials. You can find useful links at bottom of our JSF tag wiki page.

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

Sidebar

Related Questions

I have a problem with rendering my html page by the same browsers in
Ok so I have a problem with rails and rendering partials. I have a
Ok, here's a problem I'm having. I have Lua bindings to a rendering engine
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I have problem with cakephp's Session->write method. If I set a value like $_SESSION['..']
so i have a problem with :partial rendering... I have: index.html.erb view with content
I have a couple of split panels nested inside of each other. The problem
I have problem with reporting services rendering on the client which is performing very
I have a problem with rendering a mvc telerik template grid control. Every thing
I have a problem just with rendering a simple rotating cube with SlimDX (DirectX

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.