stack jmoordb
  • Introduction
  • stack/Migracion
    • jmoordbutils
    • jmoordbsecurity
    • jmoordb
      • Todos componentes
      • eliminar
    • jmoordbjsf
      • Template.xhtml
      • autocomplete
      • css
      • Migrar todos los componentes
    • jmoordbaudit
      • migracion
    • toolbarsave
  • MigrarEJB Project
  • Migrar Controller
  • Migrar LoginController
  • Migrar Primefaces
  • Eliminar LookupServices.java
  • Distribuir componentes en jar
    • Distribuir componentes desde Java Class
      • Distribuir componentes desde Java Class
      • Crear composite Maven
  • IController
    • IController
      • IController
      • isNew a validationNew
      • save()
      • @Aspect
  • Implementar Java EE 8 APi Security
    • Implementar Java EE 8 APi Security
      • web.xml
      • CustomInMemoryIdentityStore.java
      • Renombrar la Clase Application
      • list.xhtml
      • ApplicationConfig.java
      • top.xhtml
      • index.xhtml
Powered by GitBook
On this page
  • En el template.xtml
  • Quedaria

Was this helpful?

  1. stack/Migracion
  2. jmoordbjsf

Template.xhtml

PreviousjmoordbjsfNextautocomplete

Last updated 6 years ago

Was this helpful?

Se eliminaron los css y js del proyecto web y se incluyeron en jmoordbjsf

Pasos:

  • remover todas las carpetas con css

  • remover todas las carpetas con js

  • al final solo debe quedar awesome

  • image

  • reportes

  • extensions si hay alguna especial

En el template.xtml

Agregar

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

  <jmoordbjsf:jstemplate/>

Quedaria

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:b="http://bootsfaces.net/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
      xmlns:jmoordbjsf="http://jmoordbjsf.com/taglib">
    <h:head>
        <f:facet name="first">
            <f:view locale="#{idiomas.locale}"></f:view>
            <f:loadBundle basename="com.avbravo.store.properties.messages" var="msg" />
            <f:loadBundle basename="com.jmoordbutils.properties.application" var="app" />

        </f:facet>
        <title>#{msg['application.shorttitle']}</title>
        <meta name="author" content="Aristides Villarreal" />
        <meta name="description" content="BootsFaces, a powerful JSF framework that takes the best from Bootstrap and jQuery UI to let develop well-designed state-of-the-art next-gen Front-end Enterprise Applications fast and easy supporting HTML5." />
        <meta name="KEYWORDS" content="jsf, bootstrap, framework, java, enterprise, server, faces, jquery, usability, next-gen, web, html5, easy, modern, well-designed, website, state-of-the-art" />

        <meta name="robots" content="index, follow" />

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

        <style>.tooltip-inner {
                max-width: 350px;
                /* If max-width does not work, try using width instead */
                width: 350px; 
            }</style>
    </h:head>
    <h:body style="padding-top: 85px;padding-bottom: 85px;">
        <jmoordbjsf:jstemplate/>

        <script>SyntaxHighlighter.defaults['gutter'] = false;</script>   
        <script>
            if ($.blockUI) {
                $.blockUI.defaults.overlayCSS.opacity = 0;
                $.blockUI.defaults.message = '<h1><img src="../javax.faces.resource/images/waitcursor.gif.jsf?ln=bsf" /></h1>';
            }
        </script>         
        <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>

    </h:body>
</html>