com.opensymphony.module.sitemesh.tapestry
Class Util

java.lang.Object
  extended by com.opensymphony.module.sitemesh.tapestry.Util

public class Util
extends Object

This utility class gives easy access to the SiteMesh page, with convenience methods for title and property. A common usage would be with OGNL expressions like this:

In future versions of Tapestry, thanks to HiveMind integration, this will become a lot cleaner, probably like this:

Author:
Erik Hatcher

Constructor Summary
Util()
           
 
Method Summary
static org.apache.tapestry.IRender getHeadRenderer(org.apache.tapestry.IRequestCycle cycle)
           
static Page getPage(org.apache.tapestry.IRequestCycle cycle)
           
static String getProperty(String name, org.apache.tapestry.IRequestCycle cycle)
           
static String getTitle(org.apache.tapestry.IRequestCycle cycle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

getTitle

public static String getTitle(org.apache.tapestry.IRequestCycle cycle)

getProperty

public static String getProperty(String name,
                                 org.apache.tapestry.IRequestCycle cycle)

getPage

public static Page getPage(org.apache.tapestry.IRequestCycle cycle)

getHeadRenderer

public static org.apache.tapestry.IRender getHeadRenderer(org.apache.tapestry.IRequestCycle cycle)

www.opensymphony.com/sitemesh/