Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/02/2013, 08:33
stivensound
 
Fecha de Ingreso: febrero-2013
Ubicación: Valle -Colombia
Mensajes: 25
Antigüedad: 11 años, 2 meses
Puntos: 2
Respuesta: problema include icefaces en jsf

Hola, lo prometido es deuda, hice lo que me dijiste y resulta que se ve igual, sin formato ejecutándolo solo.
Aqui esta el codigo:

Plantilla:
Código HTML:
<?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:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ice="http://www.icesoft.com/icefaces/component"
      >

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        
        <Script  tipo = "script"  src = "script/funciones.js" ></Script>
        <title>Oficina Inteligente</title>
        <style type="text/css">
        #encabe {
                position:absolute;
                left:0px;
                top:5px;
                width:100%;
                height:145px;
                z-index:2;
        }
        #conte{
                position:absolute;
                left:0px;
                top:150px;
                width:100%;
                height: 100%;
                z-index:1;
        }
        </style>
    </h:head>

    <h:body onload="mueveReloj();">
        <div id="encabe">
            <ui:insert name="encabezado">
                <table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td colspan="2" align="left" valign="top" class="TituloCabecera">OFICINA INTELIGENTE (ENTIDAD)</td>
                    <td width="320" height="95" rowspan="2" align="right" valign="top" class="reloj">
                      <p><script type="text/javascript">fecha()</script>
                        <br />
                        <input id="reloj" name="reloj" type="text" class="reloj" size="10" />|Bienvenido </p>
                    <a href="paginas/cerrar_sesion.php" target="_top"><img src="imagenes/btn_cerrar_sesion.png" width="137" height="30" border="0" alt="Cerrar Sesion" /></a></td>
                  </tr>
                  <tr>
                    <td width="280" align="left" valign="middle"><img src="imagenes/marca_soltec.jpg" width="270" height="80" /></td>
                    <td width="300" align="left" valign="middle" class="info">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="25" colspan="3" align="right" valign="middle">

                    </td>
                  </tr>
                </table>
            </ui:insert>
        </div>
                
        <div id="menu">
            <ui:insert name="menu">

            </ui:insert>
        </div>
            
        <div id="nojava">
            <ui:insert name="nojava">
                <noscript>
                   <table width="900" border="0" align="center">
                        <tr>
                          <td class="Parrafos"> <div id="error" align="justify">
                    <b class="rtoperr"><b class="r1err"></b><b class="r2err"></b><b class="r3err"></b><b class="r4err"></b></b>
                      <p>Error, JavaScript deshabilitado.</p>
                    <b class="rbottomerr"><b class="r4err"></b><b class="r3err"></b><b class="r2err"></b><b class="r1err"></b></b>
                    </div></td>
                        </tr>
                   </table>
                </noscript>
            </ui:insert>
        </div>
        
        <div id="conte">
            <ui:insert name="conte">

            </ui:insert>
        </div>
                
    </h:body>
</html> 
Principal:
Código HTML:
<?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:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      >
    <h:body>
        <ui:composition template="./WEB-INF/templates/plantillaPrincipal.xhtml">

            <ui:define name="menu">
                <ui:include src="menu_admin.xhtml" >
                    <ui:param name="Open" value="resources"/>
                </ui:include>
           </ui:define>
           <ui:define name="conte">
                <iframe src="blanco.xhtml" frameborder="0" width="100%" height="100%" scrolling="auto" id="contenido" name="contenido" title="contenido" allowtransparency="allowtransparency">NO IFRAME</iframe>
           </ui:define>

        </ui:composition>
    </h:body>
</html> 
Menu:
Código HTML:
<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:ace="http://www.icefaces.org/icefaces/components"
      >
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        
        <title>TODO supply a title</title>
    </head>
    <body>
        <ui:composition>
            <ace:menuBar autoSubmenuDisplay="true">
                <ace:menuItem value="Archivo" icon="ui-icon ui-icon-home" >
                    <ace:menuItem value="copiar"  ></ace:menuItem>
                    <ace:menuItem value="pegar"  ></ace:menuItem>
                    <ace:menuItem value="abrir"  ></ace:menuItem>
                    <ace:menuItem value="guardar"  ></ace:menuItem>
                    <ace:menuItem value="imprimir"  >
                        <ace:menuItem value="todo"  ></ace:menuItem>
                        <ace:menuItem value="seleccion"  ></ace:menuItem>
                    </ace:menuItem>
                </ace:menuItem>
                <ace:menuItem value="ICEsoft" url="http://www.icesoft.org" target="_blank" icon="ui-icon ui-icon-home"/>
            </ace:menuBar>
        </ui:composition>
    </body>
</html> 
No me des tan duro que apenas estoy aprendiendo