alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java EE 6 example source code file (title.xhtml)

This example Java EE 6 source code file (title.xhtml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Java EE 6 tags/keywords

iso-8859-1, iso-8859-1

The Java EE 6 title.xhtml source code

<?xml version="1.0" encoding="ISO-8859-1" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:composite="http://java.sun.com/jsf/composite" 
      xmlns:fn="http://java.sun.com/jsp/jstl/functions">
	<ui:composition>
      <composite:interface>
      	<composite:attribute name="text" required="true" />
 		<composite:valueHolder name="oTitle" />
		<composite:facet name="header" />      	
		<composite:facet name="footer" />   
      </composite:interface>
      
      <composite:implementation>
      	  <h:panelGrid columns="1" rendered="#{not empty compositeComponent.facets.header}">
     	  	<composite:insertFacet name="header" />
      	  </h:panelGrid>	
	      <h:panelGroup>
	      	  <h1>
	      	  <h:outputText id="otTitle" value="#{compositeComponent.attrs.text}" />
		      <span style="font-size: small; color: gray; font-family: serif">
	      	  </h1>
		  </h:panelGroup>
      	  <h:panelGroup rendered="#{not empty compositeComponent.children}">
      	  		<div style="border: 1px dotted gray; padding: 10px; margin: 10px">
		      	  	<composite:insertChildren />
      	  		</div>
		  </h:panelGroup>
      	  <h:panelGrid columns="1" rendered="#{not empty compositeComponent.facets.footer}">
     	  	<composite:insertFacet name="footer" />
      	  </h:panelGrid>	
      </composite:implementation> 
	</ui:composition>
</html>

Other Java EE 6 examples (source code examples)

Here is a short list of links related to this Java EE 6 title.xhtml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.