default.xhtml

<quote>
<!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:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
<head>
  <title><ui:insert name="title">Default title</ui:insert></title>
  <!--  **** RichFaces Alert - RichFaces 3.3.3 & JSF 2.0 mode doesn't allow
        for including CSS scripts this way. Skins are the way to get CSS-like functionality -->
  <!-- link rel="stylesheet" type="text/css" href="./css/main.css"/ -->
  <!-- to use existing CSS links, use the a4j:loadStyle tag  WAY COOL! -->
  <a4j:loadStyle src="/css/main.css" />
 
</head>

<body>

<div id="header">
    <ui:insert name="header">
    <!-- let's try to put in the header some current user info -->
     <rich:panel id="user_info_panel">
        <f:facet name="user_info">
        Current User Info
        </f:facet>
       
        <h:outputLabel for="user_info_name" value="Current user is "
                style="color:blue; border:1px"></h:outputLabel>
       
        <h:outputText id="user_info_name" value="#{user_wrong.loginName}" style="color:red"></h:outputText>
    
         <rich:spacer width="100px"/>
    
         <h:form>
            <h:commandButton action="#{userLogin.logoutUser}" value="Logout" type="submit">
                 <h:outputText>Logout</h:outputText>
            </h:commandButton>
         </h:form>
         <!--
         <a4j:form>
            <a4j:commandButton  action="#{userLogin.logoutUser}" value="Submit">
                <h:outputText value="Logout" />
            </a4j:commandButton>
         </a4j:form>
         -->
    </rich:panel>
        <!-- Header area from default.xhtml.  See comments below this line in the source. -->
        <!--  include your header file or uncomment the include below and create header.xhtml in this directory -->
        <!-- <ui:include src="header.xhtml"/> -->
    </ui:insert>
</div>


<div id="content" style="bgcolor:#C5E9FE">
  <ui:insert name="content">
        Content area.  See comments below this line in the source.
        <!--  include your content file or uncomment the include below and create content.xhtml in this directory -->
          <!-- <div> -->
        <!-- <ui:include src="content.xhtml"/> --> 
        <!-- </div> -->
  </ui:insert>
</div>

<div id="templatefooter">
  <ui:insert name="footer">
  <hr/>
        <p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
        <p align="center" style="margin-top: 0; margin-bottom: 0">
            <font face="Arial" size="3"><a href="default_RF.htm">Return To Home Page</a></font>
       </p>
       <hr/>
       <!--  eventually pickup things like email addresses from property bundles -->
       <h5><font face="Arial">Page maintained by <a href="mailto:shespelt@gmail.com">ssc
webmaster</a><br/>
        <!--  the create & modify date values should be picked up via some ui:define
              as part of the deployment process...
        -->
      
          <font face="Arial">Created: <ui:insert name="create_date">1970</ui:insert>&nbsp; Updated:
  <!--webbot bot="Timestamp" S-Type="EDITED"
  S-Format="%m/%d/%Y" startspan -->
  <ui:insert name="modified_date">1970</ui:insert>
  <!--webbot bot="Timestamp" i-checksum="12543" endspan --> 
          </font>
      
       </font></h5>
        <!--  include your header file or uncomment the include
        below and create footer.xhtml in this directory -->
        <!--<ui:include src="footer.xhtml"/>  -->
  </ui:insert>
</div>

</body>

</html>
</quote>
Comments