public class ERXSubmitButton
extends com.webobjects.appserver._private.WOInput
<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.
Name | Description |
---|---|
er.extensions.components._private.ERXSubmitButton.useIEFix opt-out | er.extensions.components._private.ERXSubmitButton.useIEFix opt-out |
Modifier and Type | Field and Description |
---|---|
protected com.webobjects.appserver.WOAssociation |
_action |
protected com.webobjects.appserver.WOAssociation |
_actionClass |
protected com.webobjects.appserver.WOAssociation |
_directActionName |
protected com.webobjects.appserver.WOAssociation |
_shouldSubmitForm |
static String |
STYLE_PREFIX |
_disabled, _escapeHTML, _hidden, _name, _value
_associations, _class, _constantAttributeAssociations, _constantAttributesRepresentation, _dyneltName, _finishedInitialization, _generatedId, _id, _prefix, _rendered, _secure, _style, _suffix, _title, DontEscapeHTML, EscapeHTML
Constructor and Description |
---|
ERXSubmitButton(String arg0,
NSDictionary<String,com.webobjects.appserver.WOAssociation> nsdictionary,
com.webobjects.appserver.WOElement arg2) |
Modifier and Type | Method and Description |
---|---|
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 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) |
String |
toString() |
protected String |
type() |
_appendDisabledAttributeToResponse, _appendValueAttributeToResponse, defaultEscapeHTML, escapeHTMLInContext, hasContent, hiddenInContext, isValueInInputValues, nameInContext, nameInContext, valueStringInContext
__otherQueryDictionaryInContext, __queryDictionaryInContext, _appendAttributesFromAssociationsToResponse, _appendClassAndIdToResponse, _appendTagAttributeAndValueToResponse, _frameworkNameInComponent, appendConstantAttributesToResponse, appendHiddenFieldToResponse, appendNonURLAttributesToResponse, appendURLAttributesToResponse, classInContext, computeActionStringInContext, computeQueryDictionaryInContext, constantAttributeAssociations, constantAttributesRepresentation, elementName, escapeHTML, idInContext, isRenderedInContext, nonUrlAttributeAssociations, prefixInContext, secureInContext, stringValueInContext, styleInContext, suffixInContext, titleInContext, urlAttributeAssociations
public static final String STYLE_PREFIX
protected com.webobjects.appserver.WOAssociation _action
protected com.webobjects.appserver.WOAssociation _actionClass
protected com.webobjects.appserver.WOAssociation _directActionName
protected com.webobjects.appserver.WOAssociation _shouldSubmitForm
public ERXSubmitButton(String arg0, NSDictionary<String,com.webobjects.appserver.WOAssociation> nsdictionary, com.webobjects.appserver.WOElement arg2)
public static void appendIEButtonFixToResponse(com.webobjects.appserver.WOContext wocontext, com.webobjects.appserver.WOResponse woresponse)
protected boolean isDisabledInContext(com.webobjects.appserver.WOContext context)
isDisabledInContext
in class com.webobjects.appserver._private.WOInput
protected String type()
type
in class com.webobjects.appserver._private.WOInput
public String toString()
toString
in class com.webobjects.appserver._private.WOInput
public void takeValuesFromRequest(com.webobjects.appserver.WORequest worequest, com.webobjects.appserver.WOContext wocontext)
takeValuesFromRequest
in class com.webobjects.appserver._private.WOInput
protected String elementName(com.webobjects.appserver.WOContext wocontext)
protected void _appendOpenTagToResponse(com.webobjects.appserver.WOResponse woresponse, com.webobjects.appserver.WOContext wocontext)
_appendOpenTagToResponse
in class com.webobjects.appserver._private.WOHTMLDynamicElement
public void appendAttributesToResponse(com.webobjects.appserver.WOResponse woresponse, com.webobjects.appserver.WOContext wocontext)
appendAttributesToResponse
in class com.webobjects.appserver._private.WOInput
protected void _appendTypeAttributeToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
_appendTypeAttributeToResponse
in class com.webobjects.appserver._private.WOInput
protected void _appendCloseTagToResponse(com.webobjects.appserver.WOResponse woresponse, com.webobjects.appserver.WOContext wocontext)
_appendCloseTagToResponse
in class com.webobjects.appserver._private.WOHTMLDynamicElement
public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest worequest, com.webobjects.appserver.WOContext wocontext)
invokeAction
in class com.webobjects.appserver._private.WODynamicGroup
public void appendChildrenToResponse(com.webobjects.appserver.WOResponse woresponse, com.webobjects.appserver.WOContext wocontext)
appendChildrenToResponse
in class com.webobjects.appserver._private.WODynamicGroup
protected void _appendNameAttributeToResponse(com.webobjects.appserver.WOResponse woresponse, com.webobjects.appserver.WOContext wocontext)
_appendNameAttributeToResponse
in class com.webobjects.appserver._private.WOInput
public void appendToResponse(com.webobjects.appserver.WOResponse woresponse, com.webobjects.appserver.WOContext wocontext)
appendToResponse
in class com.webobjects.appserver._private.WOHTMLDynamicElement
Copyright © 2002 – 2020 Project Wonder.