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 WOAssociation |
_action |
protected WOAssociation |
_actionClass |
protected WOAssociation |
_directActionName |
protected 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
_children
_ConstructorParameters
Constructor and Description |
---|
ERXSubmitButton(String arg0,
NSDictionary<String,WOAssociation> nsdictionary,
WOElement arg2) |
_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
addChildElement, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest
public static final String STYLE_PREFIX
protected WOAssociation _action
protected WOAssociation _actionClass
protected WOAssociation _directActionName
protected WOAssociation _shouldSubmitForm
public ERXSubmitButton(String arg0, NSDictionary<String,WOAssociation> nsdictionary, WOElement arg2)
public static void appendIEButtonFixToResponse(WOContext wocontext, WOResponse woresponse)
protected boolean isDisabledInContext(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(WORequest worequest, WOContext wocontext)
takeValuesFromRequest
in class com.webobjects.appserver._private.WOInput
protected void _appendOpenTagToResponse(WOResponse woresponse, WOContext wocontext)
_appendOpenTagToResponse
in class com.webobjects.appserver._private.WOHTMLDynamicElement
public void appendAttributesToResponse(WOResponse woresponse, WOContext wocontext)
appendAttributesToResponse
in class com.webobjects.appserver._private.WOInput
protected void _appendTypeAttributeToResponse(WOResponse response, WOContext context)
_appendTypeAttributeToResponse
in class com.webobjects.appserver._private.WOInput
protected void _appendCloseTagToResponse(WOResponse woresponse, WOContext wocontext)
_appendCloseTagToResponse
in class com.webobjects.appserver._private.WOHTMLDynamicElement
public WOActionResults invokeAction(WORequest worequest, WOContext wocontext)
invokeAction
in class com.webobjects.appserver._private.WODynamicGroup
public void appendChildrenToResponse(WOResponse woresponse, WOContext wocontext)
appendChildrenToResponse
in class com.webobjects.appserver._private.WODynamicGroup
protected void _appendNameAttributeToResponse(WOResponse woresponse, WOContext wocontext)
_appendNameAttributeToResponse
in class com.webobjects.appserver._private.WOInput
public void appendToResponse(WOResponse woresponse, WOContext wocontext)
appendToResponse
in class com.webobjects.appserver._private.WOHTMLDynamicElement
Copyright © 2002 – 2024 Project Wonder.