<%@page contentType="text/html;charset=UTF-8"%> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@ taglib prefix="s" uri="http://struts.apache.org/shale/core"%> <%@ taglib prefix="clay" uri="http://struts.apache.org/shale/clay-plugin"%> <%-- Copyright 2006 The Apache Software Foundation. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --%> Clay Examples

Managed Bean Aliasing

This example demonstrates how Clay can use symbols for managed bean aliasing. It also demonstrates how you can define a person's name and reuse the same definitions, constructing and extending two other name combinations within the same page. Each type of name is bound to a different manged bean.

Name Reuse Example

Generic Tiles Like Layouts

This example demonstrates how you can use symbols similar to how tiles are used. There is a generic layout that defines sections of a typical page having a header, footer, left navbar and body sections. The layout is defined as an HTML template, but the entry point can be a full XML or full HTML template. There is a central Clay configuration that is dedicated to full XML views and a base component definition in the common clay configuration file.

Page 1
Page 2
Page 3