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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:12:02+00:00 2026-06-14T17:12:02+00:00

I have the following HTML file: <?xml version=1.0 encoding=UTF-8?> <!DOCTYPE html> <html xmlns=http://www.w3.org/1999/xhtml xmlns:f=http://java.sun.com/jsf/core

  • 0

I have the following HTML file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html 
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
>

<head>
<title>First Example JSF Program</title>
<head>

<body>
   Hello <h:outputText value="Darwin"></h:outputText>!
</body>
</html>

But the output, expected ‘Hello Darwin!’ won’t appear. Only ‘Hello !’ appears. Why is this? There are no errors and I’m sure it has all JAR files necessary – if it didn’t it would throw an error right?

Cheers

P.S. This is an HTML 5 file, does that make a difference?

  • 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-14T17:12:04+00:00Added an answer on June 14, 2026 at 5:12 pm

    That can happen if the request URL as you see in browser’s address did not match the <url-pattern> of the FacesServlet as definied in webapp’s web.xml and hence the FacesServlet wasn’t able to do its job of performing all the JSF works.

    If you right click the page in browser and do View Source, you should have noticed that the JSF <h:outputText> tag is completely unprocessed. JSF tags aren’t recognized by the webbrowser. They are supposed to be processed by the FacesServlet in the webserver. They are supposed to generate proper HTML code and the final HTML result should not contain any JSF tags at all.

    You need to make sure that the request URL as you see in browser’s address matches the <url-pattern> of the FacesServlet as definied in webapp’s web.xml. Imagine that it is *.jsf like as

    <url-pattern>*.jsf</url-pattern>
    

    then you should need to change the URL in the address bar from /some.xhtml to /some.jsf.

    Alternatively, you could also just change the web.xml to map the FacesServlet on *.xhtml directly

    <url-pattern>*.xhtml</url-pattern>
    

    so that you don’t need to fiddle with virtual URLs anymore.

    As to the file having HTML5 doctype, no that makes absolutely no difference. I’d only remove that XML prolog as that’s valid for XHTML doctype only. See also Is it possible to use JSF+Facelets with HTML 4/5?

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

Sidebar

Related Questions

i have the following xslt sheet: <?xml version=1.0 encoding=UTF-8 ?> <xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform version=1.0> <xsl:variable
I have a XML File in the following format: <?xml version='1.0' encoding='UTF-8'?> <entry xmlns='http://www.w3.org/2005/Atom'
I have the following JSF page: <?xml version=1.0 encoding=UTF-8?> <!DOCTYPE html PUBLIC -//W3C//DTD XHTML
In Android project's strings.xml file i have following html text <?xml version=1.0 encoding=utf-8?> <resources>
I have the following example XML file: <?xml version=1.0 encoding=utf-8?> <?xml-stylesheet type='text/xsl' href='test.xsl'?> <words>
Good Day, I have the following XML file: <?xml version=1.0 encoding=utf-8 ?> <company> <name>XYZ
All, I have the following in my string resource xml file. <?xml version=1.0 encoding=utf-8?>
Following is sample XML File - <?xml version=1.0 encoding=UTF-8?> <Catalog> <Book> <AName>Steven Holzner</AName> <BName>Using
Something's screwy here. I'm trying to parse this XSL file: <?xml version=1.0 encoding=utf-8?> <xsl:stylesheet
I made a jsf project and have the following example from http://docs.openlayers.org/library/introduction.html but as

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.