R03.Pages Example






XHTML - NetBeans


<?xml version='1.0' encoding='UTF-8' ?>
<!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:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Facelet Title</title>
<link rel="stylesheet" type="text/css" href="/WisdomFish_JSF_CRUD/faces/jsfcrud.css" />
    </h:head>
    <h:body>
....

</h:body>
</html>


XHTML - Eclipse


<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.prime.com.tr/ui"
>

<h:head id="head">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Welcome to JSF 2.0 on the Google AppEngine!</title>
</h:head>
<h:body id="body">

    <f:view contentType="text/html">



JSP


<%@page contentType="text/html" %>
<%@page pageEncoding="UTF-8" %>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>


<%@taglib uri="http://java.sun.com/jsf/facelets" prefix="ui" %>
<%@taglib uri="http://primefaces.prime.com.tr/ui" prefix="p" %>


<f:view contentType="text/html">
....
<f:view>



Comments