Forums Register Login

JSF Components does not appear on the browser

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
Is it embedded with a JSF view tag?

-Cameron McKenzie
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
-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:
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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"
+Pie Number of slices to send: Send
Everything seems to be all right.

Would you please do a view source on the browser and copy paste the contents here.
+Pie Number of slices to send: Send
I am having the same issue...please let me know if you had any progress with this.

Regards
What are your superhero powers? Go ahead and try them on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 11407 times.
Similar Threads
How can I use JSF inside a Servlet?
Problem in JSF
JSTL c:if tag is not working in JSF page
Rich:Datatable rerendering problem
How to work JSF with iframe
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:57:30.