org.apache.tapestry.wml
Class GoFormSupportImpl

java.lang.Object
  extended by org.apache.tapestry.form.FormSupportImpl
      extended by org.apache.tapestry.wml.GoFormSupportImpl
All Implemented Interfaces:
FormSupport, FormBehavior

public class GoFormSupportImpl
extends FormSupportImpl

Subclass of FormSupportImpl that adjusts the output markup to conform to WML.

Since:
4.0
Author:
Howard M. Lewis Ship

Field Summary
 
Fields inherited from class org.apache.tapestry.form.FormSupportImpl
_cycle, FIELD_FOCUS_ATTRIBUTE, FORM_IDS, RESERVED_FORM_IDS, SEED_IDS, SUBMIT_MODE
 
Constructor Summary
GoFormSupportImpl(IMarkupWriter writer, IRequestCycle cycle, IForm form)
           
 
Method Summary
 void addEventHandler(FormEventType type, String functionName)
          Adds an additional event handler.
protected  void emitEventManagerInitialization()
           
protected  void writeHiddenField(IMarkupWriter writer, String name, String id, String value)
          Overwridden by GoFormSupportImpl (WML).
protected  void writeHiddenFields()
          Writes out all hidden values previously added by FormSupportImpl.addHiddenValue(String, String, String).
protected  void writeTag(IMarkupWriter writer, String method, String url)
           
 
Methods inherited from class org.apache.tapestry.form.FormSupportImpl
addDeferredRunnable, addHiddenValue, addHiddenValue, emitEventManagerInitialization, getElementId, getElementId, getForm, getHiddenFieldWriter, getProfile, isFormFieldUpdating, isRewinding, peekClientId, prerenderField, registerForFocus, render, rewind, setEncodingType, setFormFieldUpdating, wasPrerendered, wasPrerendered, writeHiddenFieldList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoFormSupportImpl

public GoFormSupportImpl(IMarkupWriter writer,
                         IRequestCycle cycle,
                         IForm form)
Method Detail

writeTag

protected void writeTag(IMarkupWriter writer,
                        String method,
                        String url)
Overrides:
writeTag in class FormSupportImpl

writeHiddenFields

protected void writeHiddenFields()
Description copied from class: FormSupportImpl
Writes out all hidden values previously added by FormSupportImpl.addHiddenValue(String, String, String). Writes a <div> tag around FormSupportImpl.writeHiddenFieldList(IMarkupWriter). Overriden by GoFormSupportImpl.

Overrides:
writeHiddenFields in class FormSupportImpl

writeHiddenField

protected void writeHiddenField(IMarkupWriter writer,
                                String name,
                                String id,
                                String value)
Description copied from class: FormSupportImpl
Overwridden by GoFormSupportImpl (WML).

Overrides:
writeHiddenField in class FormSupportImpl

addEventHandler

public void addEventHandler(FormEventType type,
                            String functionName)
Description copied from class: FormSupportImpl
Adds an additional event handler. The type determines when the handler will be invoked, FormEventType.SUBMITis most typical.

Specified by:
addEventHandler in interface FormBehavior
Overrides:
addEventHandler in class FormSupportImpl
Parameters:
type - Type of event to add.
functionName - Name of the javascript function being added.

emitEventManagerInitialization

protected void emitEventManagerInitialization()


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.