template.xhtml

Definimos el template

  • Agregar los archivos de propiedades

   <f:facet name="first">
             <f:view locale="#{jmoordbLanguajes.locale !=null?jmoordbLanguajes.locale:'es'}"></f:view>
            <f:loadBundle basename="com.properties.messages" var="msg" />
            <f:loadBundle basename="com.jmoordbutils.properties.application" var="app" />

        </f:facet>

Agregar componentes metatemplate, csstemplate

    <jmoordbjsf:metatemplate/>
    <jmoordbjsf:csstemplate/>
    

en el body agregar

 <jmoordbjsf:jstemplate/>

Agregar los include

 <ui:insert name="nbtop">
            <ui:include src="/layout/top.xhtml"/>
        </ui:insert>

        <b:container >
            <ui:insert name="content"/>
        </b:container>

        <ui:insert name="nbtop">
            <ui:include src="/layout/footer.xhtml"/>
        </ui:insert>

template.xthml

Last updated

Was this helpful?