JavaDabbaDoo.org -Tu comunidad Java parlante Imple. MVC - ICEfaces 1.8
Inicio | Cursos infosintesis.net liberados | Java EE | Baterķa de ejemplos componentes ICEfaces
Baterķa de ejemplos componentes ICEfaces - Campos de texto
Paso 1: Operativa

Vista - notaGastos.xhtml - Crear una página XHTML

Nos situamos en la ventana Projects y con el botón derecho del ratón seleccionamos el proyecto proregusuariomvc. Entonces elegimos new | Other ...

En el cuadro de diálogo New File elegimos Web | XHTML y hacemos clic sobre el botón Next

NetBeans 6 - Crear página XHTML - Categories: Web | File Types: XHTML

En el cuadro de diálogo New XHTML File tenemos que rellenar el siguiente campo

NetBeans 6 - Crear página XHTML - New XHTML File | XHTML File Name: notaGastos

Seguidamente hacemos clic sobre el botón Finish.

Este es el código de la página XHTML notaGastos.xhtml creado por el asistente de NetBeans

<?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">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>TODO supply a title</title>
  </head>
  <body>
    <p>
      TODO write content
    </p>
  </body>
</html>

Ahora vamos a sustituirlo por este otro código

<?xml version="1.0" encoding="UTF-8"?>

<f:view xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ice="http://www.icesoft.com/icefaces/component">
  <html>  
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>TODO supply a title</title>
  </head>
  <body>
    <p>
      TODO write content
    </p>
  </body>

  </html>
</f:view>

Página anterior
Ignasi Pérez Valls
Infosintesis Solutions Group


Junio 2009
JavaDabbaDoo.org
Tu comunidad Java parlante. Cursos abiertos, tutoriales y mucho mucho más ...