org.debux.webmotion.sitemesh
Class SiteMesh

java.lang.Object
  extended by org.debux.webmotion.server.WebMotionController
      extended by org.debux.webmotion.server.WebMotionFilter
          extended by org.debux.webmotion.sitemesh.SiteMesh

public class SiteMesh
extends WebMotionFilter

Put the layouts in request attribute. Use by the filter to decorate page.

Author:
julien

Field Summary
static String LAYOUTS
          Attribute name to store the layout to decorate the page
 
Fields inherited from class org.debux.webmotion.server.WebMotionController
contextable
 
Constructor Summary
SiteMesh()
           
 
Method Summary
 void decorate(javax.servlet.http.HttpServletRequest request, String layout)
          Set the layout into the request.
 
Methods inherited from class org.debux.webmotion.server.WebMotionFilter
doProcess, getAction, getParameters
 
Methods inherited from class org.debux.webmotion.server.WebMotionController
getContext, renderAction, renderContent, renderContent, renderDownload, renderDownload, renderError, renderError, renderFailure, renderForward, renderForward, renderJSON, renderJSONP, renderLastPage, renderRedirect, renderStatus, renderStream, renderStream, renderStringTemplate, renderSuccess, renderTemplate, renderURL, renderView, renderXML, setContextable, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAYOUTS

public static final String LAYOUTS
Attribute name to store the layout to decorate the page

See Also:
Constant Field Values
Constructor Detail

SiteMesh

public SiteMesh()
Method Detail

decorate

public void decorate(javax.servlet.http.HttpServletRequest request,
                     String layout)
Set the layout into the request. Pass on the filter or the action. If the layout is null or empty not layout is passed to SiteMesh.

Parameters:
request - set layout into the request
layout - the layout to apply on the view


Copyright © 2011-2012 Debux. All Rights Reserved.