Agregar css

Pasos:

  • Agregar el archivo css

  • Crear el composite

  • Agregar el archivo cssschedule.css

Crear el archivo cssschedule.xhtml

<?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:p="http://primefaces.org/ui"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:b="http://bootsfaces.net/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:h="http://xmlns.jcp.org/jsf/html">
    <composite:interface >


        <composite:attribute name="id" />

    </composite:interface>
    <composite:implementation>

        <h:outputStylesheet library="jmoordbjsf" name="cssschedule.css"/>

    </composite:implementation>

</html>

Para usarlo en el proyecto web

<jmoordbjsf:cssschedule/>

Last updated