org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
Class FormRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.trinidad.render.CoreRenderer
          extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
              extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormRenderer
All Implemented Interfaces:
java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer

public class FormRenderer
extends XhtmlRenderer

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/laf/base/xhtml/FormRenderer.java#0 $) $Date: 10-nov-2005.18:53:51 $
Author:
The Oracle ADF Faces Team

Field Summary
static java.lang.Object USES_UPLOAD_KEY
           
 
Fields inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
TRANSPARENT_GIF
 
Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer
CHAR_UNDEFINED, NO_CHILD_INDEX
 
Constructor Summary
FormRenderer()
           
 
Method Summary
static void addLabelMapping(java.lang.String targetID, java.lang.String label)
          Add a mapping of an input element ID to a label String.
static void addOnSubmitConverterValidators(javax.faces.component.UIComponent component, javax.faces.convert.Converter converter, java.util.Iterator<javax.faces.validator.Validator> validators, java.lang.String clientId, boolean immediate, boolean required, java.lang.String requiredMessageKey)
           
static void addResetCall(java.lang.String call)
           
 void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  void encodeBegin(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent comp, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void encodeEnd(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent comp, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
protected  java.lang.String getDefaultCommand(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getFullOnkeypress(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean, java.lang.String clientId)
           
protected  java.lang.String getInlineStyle(org.apache.myfaces.trinidad.bean.FacesBean bean)
          Returns the inline Style used to render this node.
static int getInputTextCount()
           
protected  boolean getNoAutocomplete(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getOnkeypress(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getOnsubmit(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
 boolean getRendersChildren()
           
protected  java.lang.String getTargetFrame(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean getUsesUpload(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
static void incrementInputTextCount()
           
protected  void renderId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render the client ID as both an "id" and a "name"
protected  boolean shouldRenderId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          All editable components need IDs.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
cloneWithType, enableScriptDeferring, getAbsoluteImageUri, getBaseImageUri, getDefaultStyleClass, getOnclick, getOndblclick, getOnkeydown, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getShortDesc, getStyleClass, renderAllAttributes, renderAllAttributes, renderDecorativeIcon, renderDecorativeIcon, renderEventHandlers, renderFormattedText, renderHAlign, renderInlineStyle, renderInlineStyleAttribute, renderPossiblyFormattedText, renderScriptDeferAttribute, renderScriptTypeAttribute, renderShortDescAttribute, renderSpacer, renderStyleAttributes, renderStyleAttributes, renderTransparent, renderVerticalSpacer, skipDecode, supportsAccessKeys, supportsAdvancedForms, supportsAutoCompleteFormElements, supportsDisabledFormElements, supportsEditing, supportsIntrinsicEvents, supportsNavigation, supportsReadonlyFormElements, supportsScripting, supportsSeparateWindow, supportsStyleAttributes, supportsTarget, supportsTextPresentation, supportsXMLDOM
 
Methods inherited from class org.apache.myfaces.trinidad.render.CoreRenderer
delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAll, encodeAllChildren, encodeBegin, encodeChild, encodeChildren, encodeEnd, getClientId, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isIE, isInaccessibleMode, isPDA, isScreenReaderMode, renderEncodedActionURI, renderEncodedResourceURI, renderStyleClass, renderStyleClasses, setRenderingProperty, toChar, toInt, toLong, toString, toUri
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USES_UPLOAD_KEY

public static final java.lang.Object USES_UPLOAD_KEY
Constructor Detail

FormRenderer

public FormRenderer()
Method Detail

decode

public void decode(javax.faces.context.FacesContext context,
                   javax.faces.component.UIComponent component)
Overrides:
decode in class javax.faces.render.Renderer

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class javax.faces.render.Renderer

findTypeConstants

protected void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
Overrides:
findTypeConstants in class XhtmlRenderer

encodeBegin

protected void encodeBegin(javax.faces.context.FacesContext context,
                           org.apache.myfaces.trinidad.context.RenderingContext arc,
                           javax.faces.component.UIComponent comp,
                           org.apache.myfaces.trinidad.bean.FacesBean bean)
                    throws java.io.IOException
Overrides:
encodeBegin in class org.apache.myfaces.trinidad.render.CoreRenderer
Throws:
java.io.IOException

encodeEnd

protected void encodeEnd(javax.faces.context.FacesContext context,
                         org.apache.myfaces.trinidad.context.RenderingContext arc,
                         javax.faces.component.UIComponent comp,
                         org.apache.myfaces.trinidad.bean.FacesBean bean)
                  throws java.io.IOException
Overrides:
encodeEnd in class org.apache.myfaces.trinidad.render.CoreRenderer
Throws:
java.io.IOException

getInlineStyle

protected java.lang.String getInlineStyle(org.apache.myfaces.trinidad.bean.FacesBean bean)
Returns the inline Style used to render this node.

Overrides:
getInlineStyle in class XhtmlRenderer

renderId

protected void renderId(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws java.io.IOException
Render the client ID as both an "id" and a "name"

Overrides:
renderId in class org.apache.myfaces.trinidad.render.CoreRenderer
Throws:
java.io.IOException

shouldRenderId

protected boolean shouldRenderId(javax.faces.context.FacesContext context,
                                 javax.faces.component.UIComponent component)
All editable components need IDs.

Overrides:
shouldRenderId in class XhtmlRenderer

addResetCall

public static void addResetCall(java.lang.String call)
Parameters:
call - a function call. "eval(call)" will be called on the client when resetting.

addOnSubmitConverterValidators

public static void addOnSubmitConverterValidators(javax.faces.component.UIComponent component,
                                                  javax.faces.convert.Converter converter,
                                                  java.util.Iterator<javax.faces.validator.Validator> validators,
                                                  java.lang.String clientId,
                                                  boolean immediate,
                                                  boolean required,
                                                  java.lang.String requiredMessageKey)
                                           throws java.io.IOException
Throws:
java.io.IOException

addLabelMapping

public static void addLabelMapping(java.lang.String targetID,
                                   java.lang.String label)
Add a mapping of an input element ID to a label String. If there is a client-side error regarding the form element with the given ID, the given label will be used in the client-side error message.

Parameters:
targetID - the ID of the form element
label - the label that describes the form element targetID

getInputTextCount

public static int getInputTextCount()

incrementInputTextCount

public static void incrementInputTextCount()

getDefaultCommand

protected java.lang.String getDefaultCommand(org.apache.myfaces.trinidad.bean.FacesBean bean)

getOnsubmit

protected java.lang.String getOnsubmit(org.apache.myfaces.trinidad.bean.FacesBean bean)

getTargetFrame

protected java.lang.String getTargetFrame(org.apache.myfaces.trinidad.bean.FacesBean bean)

getUsesUpload

protected boolean getUsesUpload(org.apache.myfaces.trinidad.bean.FacesBean bean)

getFullOnkeypress

protected java.lang.String getFullOnkeypress(javax.faces.context.FacesContext context,
                                             javax.faces.component.UIComponent component,
                                             org.apache.myfaces.trinidad.bean.FacesBean bean,
                                             java.lang.String clientId)

getOnkeypress

protected java.lang.String getOnkeypress(org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getOnkeypress in class XhtmlRenderer

getNoAutocomplete

protected boolean getNoAutocomplete(org.apache.myfaces.trinidad.bean.FacesBean bean)


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.