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?
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.
An IDE is no substitute for an Intelligent Developer.
Joined: Oct 16, 2008
-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.
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: