public class ERXLinkButton5 extends com.webobjects.appserver._private.WOHTMLDynamicElement
Name | Description |
---|---|
action | Action method to invoke when this element is activated. |
actionClass | The name of the class in which the method designated in 'directActionName' can be found. Defaults to DirectAction. |
class | A class attribute to be bound to the anchor tag. |
directActionName | The name of the direct action method (minus the "Action" suffix) to invoke when this element is activated. Defaults to “default”. |
disabled | If evaluates to true, the button is in active. |
escapeHTML | If escapeHTML evaluates to true, the string rendered by the 'string' or 'value' binding is converted so that characters which would be interpreted as HTML control characters become their escaped equivalent (this is the default). |
fragmentIdentifier | Named location to display in the destination page. |
href | URL to direct the browser to when the button is clicked. |
id | An id attribute to be bound to the anchor tag. |
name | A name attribute to be bound to the button tag. This is ignored if 'actionClass' or 'directActionName' is bound. It will not appear if the button is disabled. |
pageName | Name of WebObjects page to display when the link is clicked. |
queryDictionary | Takes a dictionary that should be appended to the hyperlink’s URL after a question mark character. The dictionary must be correctly encoded and will be merged with any existing query dictionary for a particular session ID. |
rel | The rel attribute of the anchor tag. This binding has no effect when this element is used as a button. If the property er.extensions.ERXHyperlink.defaultNoFollow=true is used and 'action' is bound, then "nofollow" will automatically be appended. |
secure | Changes the URL prefix from http to https when WebObjects generates URLs for component actions and direct actions for this element. For this attribute to have any effect, you must provide bindings either for the 'action,' 'directAction,' 'actionClass,' or 'pageName' attribute (respecting the valid combinations). This binding has no effect when this element is used as a button. |
string | This binding provides the string value of the link when submit is false. If no string is provided, it falls back to the value binding. If no value is provided, no string is used. If the element has child elements, the string is ignored except when using IE conditionals. |
submit | This binding is ignored and the default is false if the this element is used outside of a form, 'pageName' is bound, or 'href' is bound. Otherwise, inside of a form, the default is true. Using buttons as links will not submit form values, but can be more efficient. |
useIEConditionals | When true, the element generates simple input or hyperlink elements using IE conditional comments, since IE is unable to handle button elements correctly. The default is true. |
value | This binding provides the title of the button when submit is true. If no value is provided, the value falls back to the string binding. If no string binding is provided, a default value of "Submit" is used. If the element has child elements, the value is ignored except when using IE conditionals. |
Modifier and Type | Field and Description |
---|---|
protected WOAssociation |
_action |
protected WOAssociation |
_actionClass |
protected WOAssociation |
_directActionName |
protected WOAssociation |
_disabled |
protected WOAssociation |
_escapeHTML |
protected WOAssociation |
_fragmentIdentifier |
protected WOAssociation |
_href |
protected WOAssociation |
_name |
protected NSDictionary<String,WOAssociation> |
_otherQueryAssociations |
protected WOAssociation |
_pageName |
protected WOAssociation |
_queryDictionary |
protected WOAssociation |
_rel |
protected WOAssociation |
_string |
protected WOAssociation |
_submit |
protected WOAssociation |
_useIEConditionals |
protected WOAssociation |
_value |
_associations, _class, _constantAttributeAssociations, _constantAttributesRepresentation, _dyneltName, _finishedInitialization, _generatedId, _id, _prefix, _rendered, _secure, _style, _suffix, _title, DontEscapeHTML, EscapeHTML
_children
_ConstructorParameters
Constructor and Description |
---|
ERXLinkButton5(String aName,
NSDictionary<String,WOAssociation> associations,
WOElement template) |
Modifier and Type | Method and Description |
---|---|
protected void |
_appendButtonAttributesToResponse(WOResponse response,
WOContext context) |
protected void |
_appendCGIActionURLToResponse(WOResponse response,
WOContext context,
boolean htmlEscapeURL) |
protected void |
_appendChildStringToResponse(WOResponse response,
WOContext context) |
protected void |
_appendCloseTagToResponse(WOResponse response,
WOContext context) |
protected void |
_appendClosingHrefToResponse(WOResponse response,
WOContext context) |
protected void |
_appendComponentActionURLToResponse(WOResponse response,
WOContext context,
boolean escapeHTML) |
protected void |
_appendDisabledAttributeToResponse(WOResponse response,
WOContext context) |
protected void |
_appendFragmentToResponse(WOResponse response,
WOContext context) |
protected void |
_appendIECloseTagToResponse(WOResponse response,
WOContext context) |
protected void |
_appendIEOpenTagToResponse(WOResponse response,
WOContext context) |
protected void |
_appendNameAttributeToResponse(WOResponse response,
WOContext context) |
protected void |
_appendNotIECloseTagToResponse(WOResponse response,
WOContext context) |
protected void |
_appendNotIEOpenTagToResponse(WOResponse response,
WOContext context) |
protected void |
_appendOpeningHrefToResponse(WOResponse response,
WOContext context) |
protected void |
_appendOpenTagToResponse(WOResponse response,
WOContext context) |
protected void |
_appendQueryStringToResponse(WOResponse response,
WOContext context,
String aRequestHandlerPath,
boolean htmlEscapeURL,
boolean defaultIncludeSessionID) |
protected void |
_appendRelToResponse(WOResponse response,
WOContext context) |
protected void |
_appendStaticURLToResponse(WOResponse response,
WOContext context,
boolean escapeHTML) |
protected void |
_appendValueAttributeToResponse(WOResponse response,
WOContext context) |
void |
appendAttributesToResponse(WOResponse response,
WOContext context) |
void |
appendChildrenToResponse(WOResponse response,
WOContext context) |
void |
appendToResponse(WOResponse response,
WOContext context) |
protected String |
childStringInContext(WOContext context)
Returns the child string for the button supplied by the string or value attribute.
|
protected String |
computeActionStringInContext(WOAssociation actionClass,
WOAssociation directActionName,
WOContext aContext)
Overriding to prevent exceptions when actionClass or directActionName
are bound, but resolve to null.
|
protected boolean |
defaultEscapeHTML() |
protected boolean |
escapeHTMLInContext(WOContext context) |
protected String |
fragmentIdentifierInContext(WOContext context) |
protected String |
hrefInContext(WOContext context) |
WOActionResults |
invokeAction(WORequest request,
WOContext context)
Overridden to perform the logging, propagating the action to sub-elements and returning the
current page if an empty page is returned from super.
|
WOActionResults |
invokeButtonAction(WORequest request,
WOContext context) |
WOActionResults |
invokeLinkAction(WORequest request,
WOContext context) |
protected boolean |
isDisabledInContext(WOContext context) |
String |
nameInContext(WOContext context) |
protected boolean |
submitInContext(WOContext context) |
void |
takeValuesFromRequest(WORequest request,
WOContext context) |
String |
toString() |
protected boolean |
useIEConditionalsInContext(WOContext context) |
protected String |
valueInContext(WOContext context) |
__otherQueryDictionaryInContext, __queryDictionaryInContext, _appendAttributesFromAssociationsToResponse, _appendClassAndIdToResponse, _appendTagAttributeAndValueToResponse, _frameworkNameInComponent, appendConstantAttributesToResponse, appendHiddenFieldToResponse, appendNonURLAttributesToResponse, appendURLAttributesToResponse, classInContext, computeQueryDictionaryInContext, constantAttributeAssociations, constantAttributesRepresentation, elementName, escapeHTML, hasContent, idInContext, isRenderedInContext, nonUrlAttributeAssociations, prefixInContext, secureInContext, stringValueInContext, styleInContext, suffixInContext, titleInContext, urlAttributeAssociations
addChildElement, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest
protected NSDictionary<String,WOAssociation> _otherQueryAssociations
protected WOAssociation _action
protected WOAssociation _actionClass
protected WOAssociation _directActionName
protected WOAssociation _disabled
protected WOAssociation _escapeHTML
protected WOAssociation _fragmentIdentifier
protected WOAssociation _href
protected WOAssociation _name
protected WOAssociation _pageName
protected WOAssociation _queryDictionary
protected WOAssociation _rel
protected WOAssociation _string
protected WOAssociation _submit
protected WOAssociation _useIEConditionals
protected WOAssociation _value
public ERXLinkButton5(String aName, NSDictionary<String,WOAssociation> associations, WOElement template)
public void takeValuesFromRequest(WORequest request, WOContext context)
takeValuesFromRequest
in class com.webobjects.appserver._private.WODynamicGroup
public WOActionResults invokeAction(WORequest request, WOContext context)
invokeAction
in class com.webobjects.appserver._private.WODynamicGroup
public WOActionResults invokeButtonAction(WORequest request, WOContext context)
public WOActionResults invokeLinkAction(WORequest request, WOContext context)
public void appendToResponse(WOResponse response, WOContext context)
appendToResponse
in class com.webobjects.appserver._private.WOHTMLDynamicElement
public void appendChildrenToResponse(WOResponse response, WOContext context)
appendChildrenToResponse
in class com.webobjects.appserver._private.WODynamicGroup
public void appendAttributesToResponse(WOResponse response, WOContext context)
appendAttributesToResponse
in class com.webobjects.appserver._private.WOHTMLDynamicElement
protected void _appendOpenTagToResponse(WOResponse response, WOContext context)
_appendOpenTagToResponse
in class com.webobjects.appserver._private.WOHTMLDynamicElement
protected void _appendCloseTagToResponse(WOResponse response, WOContext context)
_appendCloseTagToResponse
in class com.webobjects.appserver._private.WOHTMLDynamicElement
protected void _appendQueryStringToResponse(WOResponse response, WOContext context, String aRequestHandlerPath, boolean htmlEscapeURL, boolean defaultIncludeSessionID)
protected void _appendFragmentToResponse(WOResponse response, WOContext context)
protected void _appendCGIActionURLToResponse(WOResponse response, WOContext context, boolean htmlEscapeURL)
protected void _appendComponentActionURLToResponse(WOResponse response, WOContext context, boolean escapeHTML)
protected void _appendStaticURLToResponse(WOResponse response, WOContext context, boolean escapeHTML)
protected boolean submitInContext(WOContext context)
protected boolean useIEConditionalsInContext(WOContext context)
protected void _appendOpeningHrefToResponse(WOResponse response, WOContext context)
protected void _appendClosingHrefToResponse(WOResponse response, WOContext context)
protected void _appendButtonAttributesToResponse(WOResponse response, WOContext context)
protected void _appendIEOpenTagToResponse(WOResponse response, WOContext context)
protected void _appendIECloseTagToResponse(WOResponse response, WOContext context)
protected void _appendNotIEOpenTagToResponse(WOResponse response, WOContext context)
protected void _appendNotIECloseTagToResponse(WOResponse response, WOContext context)
protected void _appendNameAttributeToResponse(WOResponse response, WOContext context)
protected void _appendValueAttributeToResponse(WOResponse response, WOContext context)
protected void _appendDisabledAttributeToResponse(WOResponse response, WOContext context)
protected void _appendRelToResponse(WOResponse response, WOContext context)
protected void _appendChildStringToResponse(WOResponse response, WOContext context)
protected boolean isDisabledInContext(WOContext context)
protected String childStringInContext(WOContext context)
context
- the current contextpublic String toString()
toString
in class com.webobjects.appserver._private.WOHTMLDynamicElement
protected boolean defaultEscapeHTML()
protected boolean escapeHTMLInContext(WOContext context)
protected String computeActionStringInContext(WOAssociation actionClass, WOAssociation directActionName, WOContext aContext)
computeActionStringInContext
in class com.webobjects.appserver._private.WOHTMLDynamicElement
Copyright © 2002 – 2024 Project Wonder.