• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF Components does not appear on the browser

 
baris deniz
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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?
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it embedded with a JSF view tag?

-Cameron McKenzie
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18100
51
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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:
 
Smitha H Rao
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • 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
 
Dennis Zandvliet
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • 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"
 
Babu Subburathinam
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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.
 
Priya Vit
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having the same issue...please let me know if you had any progress with this.

Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic