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.JSPX - Crear una página ICEfaces

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

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

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

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

NetBeans 6 - Crear página JSPX - New JSP File | JSP File Name: notaGastos | JSP Document (XML Syntax)

Seguidamente hacemos clic sobre el botón Finish.

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

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

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">

 <jsp:directive.page contentType="text/html" pageEncoding="UTF-8"/>

 <jsp:element name="text">
  <jsp:attribute name="lang">EN</jsp:attribute>
  <jsp:body>Hello World!</jsp:body>
 </jsp:element>
</jsp:root>

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>
    <title>ICEfaces: Nota de gastos</title>
  </head>
  <body>

    
Nota de gastos
  
</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 ...