er.extensions
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.ERXHyperlink
- public class ERXHyperlink
- extends 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
Method Summary |
WOActionResults |
invokeAction(WORequest request,
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.WOHTMLDynamicElement |
_appendAttributesFromAssociationsToResponse, _frameworkNameInComponent, appendConstantAttributesToResponse, appendNonURLAttributesToResponse, appendToResponse, appendURLAttributesToResponse, computeActionStringInContext, computeQueryDictionaryInContext, constantAttributesRepresentation, elementName, escapeHTML, nonUrlAttributeAssociations, urlAttributeAssociations |
log
public static ERXLogger log
ERXHyperlink
public ERXHyperlink(String arg0,
NSDictionary arg1,
WOElement arg2)
- Parameters:
arg0
- arg1
- arg2
-
invokeAction
public WOActionResults invokeAction(WORequest request,
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.
Copyright © 2002 – 2004 Project Wonder.