Class Util
java.lang.Object
com.opensymphony.module.sitemesh.tapestry.Util
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 Summary
Modifier and TypeMethodDescriptionstatic org.apache.tapestry.IRendergetHeadRenderer(org.apache.tapestry.IRequestCycle cycle) Gets the head renderer.static PagegetPage(org.apache.tapestry.IRequestCycle cycle) Gets the page.static StringgetProperty(String name, org.apache.tapestry.IRequestCycle cycle) Gets the property.static StringgetTitle(org.apache.tapestry.IRequestCycle cycle) Gets the title.
-
Method Details
-
getTitle
Gets the title.- Parameters:
cycle- the cycle- Returns:
- the title
-
getProperty
Gets the property.- Parameters:
name- the namecycle- the cycle- Returns:
- the property
-
getPage
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
-