• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

JSF Components does not appear on the browser

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I am using JSF 1.2 mojarra IR, Eclipse Galileo and Tomcat 6.0.
When I start web server and request the jsp page including jsf components, JSF components like does not appear on the browser. However, I see HTML code like
.

I don't understand why. Because same code works correctly on my other computer. Is there s.one who has an idea on this issue?
 
author and cow tipper
Posts: 5001
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it embedded with a JSF view tag?

-Cameron McKenzie
 
Saloon Keeper
Posts: 24321
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you mean that you don't see the JSF tags when you use the View Page Source command in your browser, that's because web browsers don't understand JSF.

Part of JSF is a layer known as the rendering layer. Its responsibility is to render the JSF tags in a way that the client can understand. Most commonly, the client is a web browser, and what web browsers understand is HTML. So the JSF HTML renderers are employed to do the translation.
 
baris deniz
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
-Yes, it is embedded in f:view tag . But the thing is that the same code works very well on my other computer and it does not work at this one. By the way, my current computer OS is VISTA, the other one was XP. The problem can be in the configurations of the OS. However, I am not sure.

-No, I don't mean the view source code; I know JSF translation issue. But thanks anyway.

A simple example that doesn't work:
 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The jsf displaying is not dependent on the Operating system as its based on java.
Make sure you have configured the Faces Servlet in the web.xml and defined the servlet mapping properly. Something like below:

<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>

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>


Thanks
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

baris deniz wrote:Hello, I am using JSF 1.2 mojarra IR, Eclipse Galileo and Tomcat 6.0.



Maybe you're jsf implementation of jsf (JSF 1.2 mojarra IR) is nog compatible with

-> xmlns:h="http://java.sun.com/jsf/html"; version="2.0"
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Everything seems to be all right.

Would you please do a view source on the browser and copy paste the contents here.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having the same issue...please let me know if you had any progress with this.

Regards
 
I like tacos! And this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic