Search in sources :

Example 1 with WONoContentElement

use of com.webobjects.appserver._private.WONoContentElement in project wonder-slim by undur.

the class ERXWOHyperlink method invokeAction.

/**
 * Overridden to perform the logging, propagating the action to subelements and returning the
 * current page if an empty page is returned from super.
 */
@Override
public WOActionResults invokeAction(WORequest request, WOContext context) {
    WOActionResults result = super.invokeAction(request, context);
    if (result != null && (result instanceof WONoContentElement)) {
        result = context.page();
    }
    if (result == null) {
        String sender = context.senderID();
        String element = context.elementID();
        if (sender.startsWith(element) && !element.equals(sender)) {
            result = invokeChildrenAction(request, context);
        }
    }
    if (result != null && ERXSession.anySession() != null) {
        ERXSession.anySession().setObjectForKey(toString(), "ERXActionLogging");
    }
    return result;
}
Also used : WOActionResults(com.webobjects.appserver.WOActionResults) WONoContentElement(com.webobjects.appserver._private.WONoContentElement)

Aggregations

WOActionResults (com.webobjects.appserver.WOActionResults)1 WONoContentElement (com.webobjects.appserver._private.WONoContentElement)1