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

public final 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:
 
 <html jwcid="@Shell" title="ognl:@com.opensymphony.module.sitemesh.tapestry.Util@getTitle()">
 <p>
 In future versions of Tapestry, thanks to HiveMind integration, this will become a lot cleaner, probably like this:
 <p>
 <html jwcid="@Shell" title="sitemesh:title">
 
 
Author:
Erik Hatcher
  • Method Details

    • getTitle

      public static String getTitle(org.apache.tapestry.IRequestCycle cycle)
      Gets the title.
      Parameters:
      cycle - the cycle
      Returns:
      the title
    • getProperty

      public static String getProperty(String name, org.apache.tapestry.IRequestCycle cycle)
      Gets the property.
      Parameters:
      name - the name
      cycle - the cycle
      Returns:
      the property
    • getPage

      public static Page getPage(org.apache.tapestry.IRequestCycle cycle)
      Gets the page.
      Parameters:
      cycle - the cycle
      Returns:
      the page
    • getHeadRenderer

      public static org.apache.tapestry.IRender getHeadRenderer(org.apache.tapestry.IRequestCycle cycle)
      Gets the head renderer.
      Parameters:
      cycle - the cycle
      Returns:
      the head renderer