er.extensions.components._private
Class ERXHyperlink
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
com.webobjects.appserver._private.WODynamicGroup
com.webobjects.appserver._private.WOHTMLDynamicElement
com.webobjects.appserver._private.WOHyperlink
er.extensions.components._private.ERXHyperlink
- Direct Known Subclasses:
- ERXDataHyperlink
public class ERXHyperlink
- extends com.webobjects.appserver._private.WOHyperlink
Enhancement to WOHyperlink. Don't use this class directly, it is patched
automatically into the runtime system on application startup. Just use WOHyperlink.
- Puts a description of the action into the session under the key
ERXActionLogging
- When the
disabled
is true, then returns context().page()
instead of the normal WONoContentElement. The rationale is that in almost all cases
you don't want your users to see an empty page, especially not in the typical case when
you show a list paginator and disable the link to the current item.
- When you have action targets inside of the hyperlink, then their invokeAction()
method is normally never called. This is probably an optimization, but breaks the case when you have
- say - onClick elements inside of the hyperlink. This subclass will instead propagate the
invokeAction to the children if the senderID() starts with the elementID() (which should indicate an
action inside of a hyperlink).
- Author:
- david Logging, ak WONoContentElement fix, senderID fix, double-quote fix
Field Summary |
static org.apache.log4j.Logger |
log
|
Fields inherited from class com.webobjects.appserver._private.WOHyperlink |
_action, _disabled, _fragmentIdentifier, _href, _pageName, _secure, _string |
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 |
ERXHyperlink(java.lang.String arg0,
com.webobjects.foundation.NSDictionary arg1,
com.webobjects.appserver.WOElement arg2)
|
Method Summary |
void |
appendAttributesToResponse(com.webobjects.appserver.WOResponse woresponse,
com.webobjects.appserver.WOContext wocontext)
|
com.webobjects.appserver.WOActionResults |
invokeAction(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
Overriden to perform the logging, propagating the action to subelements and returning the
current page if an empty page is returned from super. |
Methods inherited from class com.webobjects.appserver._private.WOHyperlink |
_appendCGIActionURLToResponse, _appendCloseTagToResponse, _appendFragmentToResponse, _appendOpenTagToResponse, _appendQueryStringToResponse, appendChildrenToResponse, appendContentStringToResponse, toString |
Methods inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement |
_appendAttributesFromAssociationsToResponse, _frameworkNameInComponent, appendConstantAttributesToResponse, appendNonURLAttributesToResponse, appendToResponse, appendURLAttributesToResponse, computeActionStringInContext, computeQueryDictionaryInContext, constantAttributesRepresentation, elementName, escapeHTML, nonUrlAttributeAssociations, urlAttributeAssociations |
Methods inherited from class com.webobjects.appserver._private.WODynamicGroup |
addChildElement, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, takeValuesFromRequest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
log
public static org.apache.log4j.Logger log
ERXHyperlink
public ERXHyperlink(java.lang.String arg0,
com.webobjects.foundation.NSDictionary arg1,
com.webobjects.appserver.WOElement arg2)
- Parameters:
arg0
- arg1
- arg2
-
invokeAction
public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
- Overriden to perform the logging, propagating the action to subelements and returning the
current page if an empty page is returned from super.
- Overrides:
invokeAction
in class com.webobjects.appserver._private.WOHyperlink
appendAttributesToResponse
public void appendAttributesToResponse(com.webobjects.appserver.WOResponse woresponse,
com.webobjects.appserver.WOContext wocontext)
- Overrides:
appendAttributesToResponse
in class com.webobjects.appserver._private.WOHyperlink
Copyright © 2002 – 2007 Project Wonder.