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 $

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 clientId, java.lang.String call)
           
protected  void decode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean facesBean, java.lang.String clientId)
           
protected  void encodeBegin(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, 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 rc, 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 getAutoComplete(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getDefaultCommand(javax.faces.component.UIComponent component, 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(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Returns the inline Style used to render this node.
static int getInputTextCount()
           
protected  java.lang.String getOnkeypress(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getOnsubmit(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
 boolean getRendersChildren()
           
protected  java.lang.String getTargetFrame(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean getUsesUpload(javax.faces.component.UIComponent component, 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"
 void setupEncodingContext(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component)
           
protected  boolean shouldRenderId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          All editable components need IDs.
 void tearDownEncodingContext(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component)
           
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
canSkipRendering, canSkipRendering, cloneWithType, getAbsoluteImageUri, getBaseImageUri, getDefaultStyleClass, getOnclick, getOndblclick, getOnkeydown, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getPartialTriggers, getShortDesc, getStyleClass, renderAllAttributes, renderAllAttributes, renderDecorativeIcon, renderDecorativeIcon, renderEventHandlers, renderFormattedText, renderHAlign, renderInlineStyle, renderInlineStyleAttribute, renderPossiblyFormattedText, renderScriptDeferAttribute, renderScriptTypeAttribute, renderShortDescAttribute, renderSpacer, renderStyleAttributes, renderStyleAttributes, renderSubmitButtonNonJSBrowser, renderTransparent, renderVerticalSpacer, resolveProperty, resolveProperty, skipDecode, supportsAccessKeys, supportsAdvancedForms, supportsAutoCompleteFormElements, supportsDisabledFormElements, supportsEditing, supportsIntrinsicEvents, supportsNarrowScreen, supportsNavigation, supportsOnClickOnImgInput, supportsReadonlyFormElements, supportsScripting, supportsSeparateWindow, supportsStyleAttributes, supportsTarget, supportsTextPresentation
 
Methods inherited from class org.apache.myfaces.trinidad.render.CoreRenderer
afterEncode, beforeEncode, decode, decodeBehaviors, delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAll, encodeAllChildren, encodeBegin, encodeChild, encodeChildren, encodeComponentResources, encodeEnd, getBehaviorParameters, getClientId, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderedFacetsAndChildren, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isGenericPDA, isIE, isInaccessibleMode, isIPhone, isKonqueror, isNokiaS60, isOpera, isPDA, isScreenReaderMode, isWebKit, partialEncodeVisit, renderEncodedActionURI, renderEncodedResourceURI, renderStyleClass, renderStyleClasses, setRenderingProperty, setupChildrenEncodingContext, setupEncodingContext, tearDownChildrenEncodingContext, tearDownEncodingContext, toActionUri, toChar, toInt, toLong, toResourceUri, toString, toUri, visitChildrenForEncoding
 
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

protected void decode(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent component,
                      org.apache.myfaces.trinidad.bean.FacesBean facesBean,
                      java.lang.String clientId)
Overrides:
decode in class org.apache.myfaces.trinidad.render.CoreRenderer

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

setupEncodingContext

public void setupEncodingContext(javax.faces.context.FacesContext context,
                                 org.apache.myfaces.trinidad.context.RenderingContext rc,
                                 javax.faces.component.UIComponent component)
Overrides:
setupEncodingContext in class org.apache.myfaces.trinidad.render.CoreRenderer

encodeBegin

protected void encodeBegin(javax.faces.context.FacesContext context,
                           org.apache.myfaces.trinidad.context.RenderingContext rc,
                           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 rc,
                         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

tearDownEncodingContext

public void tearDownEncodingContext(javax.faces.context.FacesContext context,
                                    org.apache.myfaces.trinidad.context.RenderingContext rc,
                                    javax.faces.component.UIComponent component)
Overrides:
tearDownEncodingContext in class org.apache.myfaces.trinidad.render.CoreRenderer

getInlineStyle

protected java.lang.String getInlineStyle(javax.faces.component.UIComponent component,
                                          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 clientId,
                                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(javax.faces.component.UIComponent component,
                                             org.apache.myfaces.trinidad.bean.FacesBean bean)

getOnsubmit

protected java.lang.String getOnsubmit(javax.faces.component.UIComponent component,
                                       org.apache.myfaces.trinidad.bean.FacesBean bean)

getTargetFrame

protected java.lang.String getTargetFrame(javax.faces.component.UIComponent component,
                                          org.apache.myfaces.trinidad.bean.FacesBean bean)

getUsesUpload

protected boolean getUsesUpload(javax.faces.component.UIComponent component,
                                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(javax.faces.component.UIComponent component,
                                         org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getOnkeypress in class XhtmlRenderer

getAutoComplete

protected java.lang.String getAutoComplete(javax.faces.component.UIComponent component,
                                           org.apache.myfaces.trinidad.bean.FacesBean bean)


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.