Good afternoon, devs..

please, look on the next code:
<%@ page contentType="text/html; charset=ISO-8859-1" %>

<%@ page import="java.text.*" %>
<%@ page import="java.util.*" %>

<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>

<f:view>

<html>
<link href="css/ie.css" rel="stylesheet" />

<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0"
marginheight="0" marginwidth="0">

<f:loadBundle var="bundle" basename="resources.mtMessages" />

<table cellpadding="0" cellspacing="0" style="height: 100%;">
<tr style="height: 55px;">
        <td><[EMAIL PROTECTED] file="logo_part.html"%></td>
        <td style="background-color: #cccccc; width: 100%;"><[EMAIL PROTECTED]
file="header_part.jsp"%></td>
</tr>
....

then if we look on generated html code we can see:
<html>
<link href="css/ie.css" rel="stylesheet" />

<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0"
marginheight="0" marginwidth="0">

<table cellpadding="0" cellspacing="0" style="height: 100%;">
<tr style="height: 55px;">
        <td><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0"
bottommargin="0" rightmargin="0" marginheight="0" marginwidth="0">
images/p_head.gif 
</body>
</html>
</td>
        <td style="background-color: #cccccc; width: 100%;"><table border="0"
cellspacing="0" cellpadding="0" width="820">

        <tr>
            <td align="left" valign="top" height="30" width="10"> 
../images/0.gif
</td>
            <td  align="left" valign="bottom" height="30" class="titlemeta">SDS
Monitoring Tool</td>
            <td align="right" valign="top" height="30"></td>
        </tr>
        <tr>
            <td align="left" valign="top" height="25" width="10">&nbsp;</td>
            <td align="left" valign="top" height="25">&nbsp;</td>

            <td align="right" valign="top" height="25">&nbsp; </td>
        </tr>
</table>
</td>
</tr

As you saw: double html tag, second a few lines after first one.
A part of my table before HEAD tag and then closed HTML tag.


thank you for your great work devs..

--
View this message in context: 
http://www.nabble.com/wrong-html-code-generation-t1753439.html#a4767370
Sent from the My Faces - Dev forum at Nabble.com.

Reply via email to