Results 1 to 3 of 3
Thread: JSF doesn't render right
- 09-18-2012, 02:04 PM #1
Member
- Join Date
- Sep 2012
- Posts
- 8
- Rep Power
- 0
JSF doesn't render right
I have two types of .jsp files
no1.jsp
no2.jspJava Code:<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <f:view> <h:outputText value="SUPER"></h:outputText> </f:view> </body> </html>
problem is that no1.jsp renders right to html and it's all ok in browser.Java Code:<?xml version="1.0" encoding="ISO-8859-1" ?> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <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> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Insert title here</title> </head> <body> <f:view> <h:outputText value="SUPER"></h:outputText> </f:view> </body> </html>
But no2.jsp doesn't, jsf tags f:view and h:outputText stays the same, they are not converted to true html.
Why is that, this code is based on eclispe helios templates for jsf.
I'm using Jboss 5.0 and jsf 1.2 Mojarra. Can somebody explain what is the problem. thx
- 09-18-2012, 03:35 PM #2
Re: JSF doesn't render right
Moved from New to Java
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 09-20-2012, 05:47 PM #3
Member
- Join Date
- Sep 2012
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
Programatically call Render
By joeyvitoro in forum Advanced JavaReplies: 9Last Post: 11-22-2011, 04:11 PM -
Image Render Speed
By zirbinator in forum Java 2DReplies: 2Last Post: 08-27-2011, 11:44 PM -
Render an image into a given quadrilateral
By JeremyWilms in forum Java 2DReplies: 19Last Post: 08-24-2011, 07:26 AM -
Best Way To Render
By rp181 in forum Java 2DReplies: 1Last Post: 03-24-2011, 06:20 PM -
Loki Render 0.3
By levent in forum Java SoftwareReplies: 0Last Post: 07-26-2007, 08:31 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks