org.jboss.seam.ui.facelet
Class FaceletsRenderer.RenderingContext

java.lang.Object
  extended by org.jboss.seam.ui.facelet.FaceletsRenderer.RenderingContext
Enclosing class:
FaceletsRenderer

protected abstract class FaceletsRenderer.RenderingContext
extends java.lang.Object

Sets up and tears down the rendering (FacesContext, ExternalContext) using Seam's mock contexts if JSF is not currently running. Also switches out the ViewRoot for the duration. Any output written to the ResponseWriter is buffered.

Author:
Pete Muir

Constructor Summary
FaceletsRenderer.RenderingContext(java.lang.String viewId)
           
 
Method Summary
 java.lang.String getOutput()
          Return any output written to the ResponseWriter as a String
protected abstract  void process()
          Override to execute within a RenderingContext
 void run()
          Call to execute the process method inside the RenderingContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaceletsRenderer.RenderingContext

public FaceletsRenderer.RenderingContext(java.lang.String viewId)
Method Detail

run

public void run()
Call to execute the process method inside the RenderingContext


getOutput

public java.lang.String getOutput()
Return any output written to the ResponseWriter as a String


process

protected abstract void process()
Override to execute within a RenderingContext



Copyright © 2007. All Rights Reserved.