org.jboss.seam.ui.renderkit
Class RemoteRendererBase

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.jboss.seam.ui.util.cdk.RendererBase
          extended by org.jboss.seam.ui.renderkit.RemoteRendererBase

public class RemoteRendererBase
extends RendererBase

Renderer for rendering the required <script> tags for Seam Remoting

Author:
Shane Bryzak

Field Summary
 
Fields inherited from class org.jboss.seam.ui.util.cdk.RendererBase
JAVASCRIPT_NAMESPACE
 
Constructor Summary
RemoteRendererBase()
           
 
Method Summary
protected  void doEncodeBegin(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Template method for custom start encoding of concrete renderer.
protected  void doEncodeEnd(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Template method for custom finish encoding of concrete renderer.
protected  java.lang.Class getComponentClass()
          Get base component slass , targetted for this renderer.
 void writeScript(javax.faces.context.FacesContext context, UIRemote remote)
           
 
Methods inherited from class org.jboss.seam.ui.util.cdk.RendererBase
decode, doDecode, doEncodeChildren, encodeBegin, encodeChildren, encodeEnd, getUtils, preDecode, preEncodeBegin, renderChild, renderChildren
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteRendererBase

public RemoteRendererBase()
Method Detail

getComponentClass

protected java.lang.Class getComponentClass()
Description copied from class: RendererBase
Get base component slass , targetted for this renderer. Used for check arguments in decode/encode.

Specified by:
getComponentClass in class RendererBase

doEncodeBegin

protected void doEncodeBegin(javax.faces.context.ResponseWriter writer,
                             javax.faces.context.FacesContext context,
                             javax.faces.component.UIComponent component)
                      throws java.io.IOException
Description copied from class: RendererBase
Template method for custom start encoding of concrete renderer. All parameters checking and writer is performed in original encodeBegin() method.

Overrides:
doEncodeBegin in class RendererBase
Throws:
java.io.IOException

doEncodeEnd

protected void doEncodeEnd(javax.faces.context.ResponseWriter writer,
                           javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
                    throws java.io.IOException
Description copied from class: RendererBase
Template method for custom finish encoding of concrete renderer. All parameters checking and writer is performed in original encodeEnd() method.

Overrides:
doEncodeEnd in class RendererBase
Throws:
java.io.IOException

writeScript

public void writeScript(javax.faces.context.FacesContext context,
                        UIRemote remote)
                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2009 JBoss. All Rights Reserved.