<MetaMarkdown>

A version of the Markdown tag that will translate embedded URLs to context actions.

This component is useful when hyperlinks in markdown text should trigger actions in the meta context. Two URL patterns in markdown links will trigger this behavior:

/action/someAction
/goto/somePage

The first will translate into the context assignment action=someAction. The second to action=goto, page=somePage. Rules may then match on these to derive the appropriate "actionResults" property.

Both variants also support a list of query params. E.g.:

/action/doIt?class=myClass&layout=myLayout

Will result in the context assignments:

class = myClass
layout = myLayout
action = doIt

(and then the actionResults property will be evaluated to get the page to return).

Bindings
value

The markdown text

String
(get)
resourcePath

The resource manager relative path for the current value (used to resolve relative path references to other resources)

String
(get)
urlFilter

Instance of HTMLActionFilter.UrlFilter that should be applied to action urls

HTMLActionFilter.UrlFilter
(get)

ariba.ui.meta.layouts
Class MetaMarkdown

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWBaseObject
      extended by ariba.ui.aribaweb.core.AWComponent
          extended by ariba.ui.meta.layouts.MetaMarkdown
All Implemented Interfaces:
AWCycleable, AWCycleableReference, AWResponseGenerating, AWResponseGenerating.ResponseSubstitution, AWObject

public class MetaMarkdown
extends AWComponent


Nested Class Summary
 
Nested classes/interfaces inherited from class ariba.ui.aribaweb.core.AWComponent
AWComponent.RenderingFilter, AWComponent.RenderingListener
 
Nested classes/interfaces inherited from interface ariba.ui.aribaweb.core.AWResponseGenerating
AWResponseGenerating.ResponseSubstitution
 
Constructor Summary
MetaMarkdown()
           
 
Method Summary
 AWResponseGenerating action()
           
 java.lang.String actionTarget()
           
static AWResource lookupRelativeResource(java.lang.String baseResourcePath, java.lang.String relativePath, AWRequestContext requestContext)
           
 java.lang.String markdownValue()
           
static java.lang.String moduleForResource(java.lang.String resourcePath, UIMeta.UIContext context)
           
 java.lang.String replacementResourceUrl()
           
static java.lang.String resourceRelative(java.lang.String baseResourcePath, java.lang.String relativePath, AWRequestContext requestContext)
           
 
Methods inherited from class ariba.ui.aribaweb.core.AWComponent
_topLevelApplyValues, _topLevelInvokeAction, _topLevelRenderResponse, allowEmbeddedKeyPaths, allowsWhitespaceCompression, application, applyValues, awcyclePageAndLog, bindingForName, bindingForName, bindings, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, browserMaxWidth, browserMinWidth, characterEncoding, clearValidationError, clientTimeZone, componentConfiguration, componentDefinition, componentPath, componentReference, createPageWithName, defaultTemplateParser, determineInstance, determineInstance, dict, dict, dict, doubleValueForBinding, doubleValueForBinding, doubleValueForBinding, encodedStringValueForBinding, encodedStringValueForBinding, ensureAwake, ensureFieldValuesClear, env, errorManager, escapeAttribute, escapeString, escapeUnsafeString, extendedFields, formValueManager, generateResponse, generateResponse, generateResponse, generateStringContents, getAWParameter, getDrivingBusinessObject, getFoldInSituOnWindowSizeParam, getPageRenderVersion, getThis, hasBinding, hasBinding, hasContentForTagName, hasContentNamed, hasMultipleTemplates, hasSubTemplateNamed, httpSession, init, init, initTemplateResourceManager, intValueForBinding, intValueForBinding, intValueForBinding, invokeAction, isBidirectional, isBrowserMicrosoft, isClientPanel, isMacintosh, isRenderAW5, isStateless, isStrictTagNaming, isUserCommunityEnabled, isValidationEnabled, languageDirection, languageLeft, languageRight, loadTemplate, localizedJavaString, markBacktrackState, name, namePath, notifyChange, otherBindings, otherBindingsValues, page, pageComponent, pageWithClass, pageWithClass, pageWithName, pageWithName, parent, postTakeValueActions, preferredLocale, recordBacktrackState, recordBacktrackState, recordValidationError, recordValidationError, recordValidationError, recordValidationErrors, recordValidationWarning, redirectToPage, registerRenderingListener, registerXmlNodeWithName, removeBacktrackState, renderResponse, replacementResponse, request, requestContext, requiresPreGlidCompatibility, resourceClassName, resourceManager, response, restoreFromBacktrackState, session, session, setCharacterEncoding, setClientPanel, setClientTimeZone, setComponentConfiguration, setDefaultTemplateParser, setEnv, setPerfDestinationInfo, setPreferredLocale, setResourceManager, setTemplateParser, setupForNextCycle, setValueForBinding, setValueForBinding, setValueForBinding, setValueForBinding, setValueForBinding, setValueForBinding, shouldCachePage, shouldCloseElements, strings, stringValueForBinding, stringValueForBinding, stringValueForBinding, supportedBindingNames, template, templateName, templateParser, templateResource, templateResourceManager, truncateBacktrackState, truncateBacktrackState, urlForResourceNamed, urlForResourceNamed, urlForResourceNamed, useXmlEscaping, valueForBinding, valueForBinding, valueForBinding, xml
 
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject
debugString, getFieldValue, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ariba.ui.aribaweb.util.AWObject
getFieldValue, isKindOfClass, setFieldValue
 

Field Detail

_actionUrl

public java.lang.String _actionUrl

_resourceUrl

public java.lang.String _resourceUrl

_needsPrettyPrint

public boolean _needsPrettyPrint
Constructor Detail

MetaMarkdown

public MetaMarkdown()
Method Detail

markdownValue

public java.lang.String markdownValue()

action

public AWResponseGenerating action()

actionTarget

public java.lang.String actionTarget()

replacementResourceUrl

public java.lang.String replacementResourceUrl()

lookupRelativeResource

public static AWResource lookupRelativeResource(java.lang.String baseResourcePath,
                                                java.lang.String relativePath,
                                                AWRequestContext requestContext)

resourceRelative

public static java.lang.String resourceRelative(java.lang.String baseResourcePath,
                                                java.lang.String relativePath,
                                                AWRequestContext requestContext)

moduleForResource

public static java.lang.String moduleForResource(java.lang.String resourcePath,
                                                 UIMeta.UIContext context)


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.