org.apache.tapestry.services.impl
Class BaseTagWriter
java.lang.Object
org.apache.tapestry.services.impl.BaseTagWriter
- All Implemented Interfaces:
- IRender
public class BaseTagWriter
- extends java.lang.Object
- implements IRender
Contains code needed to render the <base> tag for pages. The <base> tag ensures that
the base URL for the rendered page matches the location of the page template in the servlet
context, so that relative URLs to static assets (images, stylesheets, etc.) will be processed
correctly. This is important starting with release 4.0, where HTML templates are no longer
restricted to the servlet root.
Note that pages outside of the application namespace (provided by the framework itself, or in a
library) are "virtually located" in the application root.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseTagWriter
public BaseTagWriter()
render
public void render(IMarkupWriter writer,
IRequestCycle cycle)
- Description copied from interface:
IRender
- The principal rendering/rewinding method. This will cause
the receiving component to render its top level elements (HTML
text and components).
Renderring and rewinding are the exact same process. The
same code that renders must be able to restore state by going
through the exact same operations (even though the output is
discarded).
- Specified by:
render
in interface IRender