Project Wonder 5.0

er.extensions.components._private
Class ERXSubmitButton

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WODynamicElement
          extended by com.webobjects.appserver._private.WODynamicGroup
              extended by com.webobjects.appserver._private.WOHTMLDynamicElement
                  extended by com.webobjects.appserver._private.WOInput
                      extended by er.extensions.components._private.ERXSubmitButton
Direct Known Subclasses:
ERXAccessibleSubmitButton

public class ERXSubmitButton
extends com.webobjects.appserver._private.WOInput

Clone of WOSubmitButton that should emit <button> tags instead of <input> tags. This allows you to use HTML content and superior style features.
Unfortunately, IE is totally broken and always submits all buttons on a page, which makes it unusable for actions. So this component inserts some javascript to fix this. Of course, this means your button is only usable with scripting turned on in IE.
You can add this class via ERXPatcher.setClassForName(ERXSubmitButton.class, "WOSubmitButton"); and see how this works out or use it explicitely. If you just patch it into the system, the value is used as the content, otherwise you can put any html you like into it.

Author:
ak
Properties
er.extensions.components._private.ERXSubmitButton.useIEFix opt-outer.extensions.components._private.ERXSubmitButton.useIEFix opt-out
           

Field Summary
protected  com.webobjects.appserver.WOAssociation _action
           
protected  com.webobjects.appserver.WOAssociation _actionClass
           
protected  com.webobjects.appserver.WOAssociation _class
           
protected  com.webobjects.appserver.WOAssociation _directActionName
           
protected  com.webobjects.appserver.WOAssociation _id
           
protected  com.webobjects.appserver.WOAssociation _shouldSubmitForm
           
static org.apache.log4j.Logger log
           
static java.lang.String STYLE_PREFIX
           
 
Fields inherited from class com.webobjects.appserver._private.WOInput
_escapeHTML, _value
 
Fields inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
_associations, _constantAttributesRepresentation, _dyneltName, _finishedInitialization
 
Fields inherited from class com.webobjects.appserver._private.WODynamicGroup
_children
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
ERXSubmitButton(java.lang.String arg0, com.webobjects.foundation.NSDictionary<java.lang.String,com.webobjects.appserver.WOAssociation> nsdictionary, com.webobjects.appserver.WOElement arg2)
           
 
Method Summary
protected  void _appendCloseTagToResponse(com.webobjects.appserver.WOResponse woresponse, com.webobjects.appserver.WOContext wocontext)
           
protected  void _appendNameAttributeToResponse(com.webobjects.appserver.WOResponse woresponse, com.webobjects.appserver.WOContext wocontext)
           
protected  void _appendOpenTagToResponse(com.webobjects.appserver.WOResponse woresponse, com.webobjects.appserver.WOContext wocontext)
           
protected  void _appendTypeAttributeToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
           
 void appendAttributesToResponse(com.webobjects.appserver.WOResponse woresponse, com.webobjects.appserver.WOContext wocontext)
           
 void appendChildrenToResponse(com.webobjects.appserver.WOResponse woresponse, com.webobjects.appserver.WOContext wocontext)
           
static void appendIEButtonFixToResponse(com.webobjects.appserver.WOContext wocontext, com.webobjects.appserver.WOResponse woresponse)
           
 void appendToResponse(com.webobjects.appserver.WOResponse woresponse, com.webobjects.appserver.WOContext wocontext)
           
protected  java.lang.String elementName(com.webobjects.appserver.WOContext wocontext)
           
 com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest worequest, com.webobjects.appserver.WOContext wocontext)
           
protected  boolean isDisabledInContext(com.webobjects.appserver.WOContext context)
           
 void takeValuesFromRequest(com.webobjects.appserver.WORequest worequest, com.webobjects.appserver.WOContext wocontext)
           
 java.lang.String toString()
           
protected  java.lang.String type()
           
 
Methods inherited from class com.webobjects.appserver._private.WOInput
_appendValueAttributeToResponse, _shouldEscapeHTML, constantAttributesRepresentation, disabledInComponent, nameInContext
 
Methods inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
_appendAttributesFromAssociationsToResponse, _frameworkNameInComponent, appendConstantAttributesToResponse, appendNonURLAttributesToResponse, appendURLAttributesToResponse, computeActionStringInContext, computeQueryDictionaryInContext, elementName, escapeHTML, nonUrlAttributeAssociations, urlAttributeAssociations
 
Methods inherited from class com.webobjects.appserver._private.WODynamicGroup
addChildElement, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Logger log

STYLE_PREFIX

public static final java.lang.String STYLE_PREFIX
See Also:
Constant Field Values

_class

protected com.webobjects.appserver.WOAssociation _class

_id

protected com.webobjects.appserver.WOAssociation _id

_action

protected com.webobjects.appserver.WOAssociation _action

_actionClass

protected com.webobjects.appserver.WOAssociation _actionClass

_directActionName

protected com.webobjects.appserver.WOAssociation _directActionName

_shouldSubmitForm

protected com.webobjects.appserver.WOAssociation _shouldSubmitForm
Constructor Detail

ERXSubmitButton

public ERXSubmitButton(java.lang.String arg0,
                       com.webobjects.foundation.NSDictionary<java.lang.String,com.webobjects.appserver.WOAssociation> nsdictionary,
                       com.webobjects.appserver.WOElement arg2)
Method Detail

appendIEButtonFixToResponse

public static void appendIEButtonFixToResponse(com.webobjects.appserver.WOContext wocontext,
                                               com.webobjects.appserver.WOResponse woresponse)

isDisabledInContext

protected boolean isDisabledInContext(com.webobjects.appserver.WOContext context)

type

protected java.lang.String type()
Overrides:
type in class com.webobjects.appserver._private.WOInput

toString

public java.lang.String toString()
Overrides:
toString in class com.webobjects.appserver._private.WOInput

takeValuesFromRequest

public void takeValuesFromRequest(com.webobjects.appserver.WORequest worequest,
                                  com.webobjects.appserver.WOContext wocontext)
Overrides:
takeValuesFromRequest in class com.webobjects.appserver._private.WOInput

elementName

protected java.lang.String elementName(com.webobjects.appserver.WOContext wocontext)

_appendOpenTagToResponse

protected void _appendOpenTagToResponse(com.webobjects.appserver.WOResponse woresponse,
                                        com.webobjects.appserver.WOContext wocontext)
Overrides:
_appendOpenTagToResponse in class com.webobjects.appserver._private.WOHTMLDynamicElement

appendAttributesToResponse

public void appendAttributesToResponse(com.webobjects.appserver.WOResponse woresponse,
                                       com.webobjects.appserver.WOContext wocontext)
Overrides:
appendAttributesToResponse in class com.webobjects.appserver._private.WOInput

_appendTypeAttributeToResponse

protected void _appendTypeAttributeToResponse(com.webobjects.appserver.WOResponse response,
                                              com.webobjects.appserver.WOContext context)

_appendCloseTagToResponse

protected void _appendCloseTagToResponse(com.webobjects.appserver.WOResponse woresponse,
                                         com.webobjects.appserver.WOContext wocontext)
Overrides:
_appendCloseTagToResponse in class com.webobjects.appserver._private.WOHTMLDynamicElement

invokeAction

public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest worequest,
                                                             com.webobjects.appserver.WOContext wocontext)
Overrides:
invokeAction in class com.webobjects.appserver._private.WODynamicGroup

appendChildrenToResponse

public void appendChildrenToResponse(com.webobjects.appserver.WOResponse woresponse,
                                     com.webobjects.appserver.WOContext wocontext)
Overrides:
appendChildrenToResponse in class com.webobjects.appserver._private.WODynamicGroup

_appendNameAttributeToResponse

protected void _appendNameAttributeToResponse(com.webobjects.appserver.WOResponse woresponse,
                                              com.webobjects.appserver.WOContext wocontext)
Overrides:
_appendNameAttributeToResponse in class com.webobjects.appserver._private.WOInput

appendToResponse

public void appendToResponse(com.webobjects.appserver.WOResponse woresponse,
                             com.webobjects.appserver.WOContext wocontext)
Overrides:
appendToResponse in class com.webobjects.appserver._private.WOHTMLDynamicElement

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.