@ThreadRestricted(value="wicket") @StatelessComponent public final class WP_D extends VPageHTML
+--------------------------------------+ | stage | +--------------------------------------+ | | | | | | | | | difference | | | | | | | | | | | +--------------------------------------+
At the top is a Crossforum Theatre stage view implented in GWT. The bulk of the page is occupied by a static HTML view of a difference between two drafts, together with controls for selectively patching between them. Only drafts published as MediaWiki pages are supported. The pair is specified by one or more query parameters which together comprise a "pair specifier". Several types of pair specifier are supported:
Here is an example of a request using a difference key:
http://reluk.ca:8080/v/w/D?k=3812.3556-3242.3004!1
Key | Value |
---|---|
k | The difference key. |
Choose one of the following. Each redirects to a difference view in normal voter-candidate order where applicable, or lexical order otherwise.
Key | Value |
---|---|
alterAuthor poll |
The name of an author and a poll in the local wiki. The requester is redirected to the difference between the latest revisions of that author's draft and the authenticated user's draft. Parameter 's' is interpreted as though the user's revision will come first (a) and the other second (b), though the actual placement may be the opposite. |
aAuthor bAuthor poll |
The names of two authors and a poll. The requester is redirected to the difference between the latest revisions of their position drafts. |
This obsolete, parsed form of a difference key specifier (k) is provided for the service of old links. It comprises up to 4 query parameters: 'a', 'aR', 'b', and 'bR'. For example: (fails because it cannot accommodate the revision series !1)
http://reluk.ca:8080/v/w/D?a=3812&b=3242&aR=3556&bR=3004
(fails)
Key | Value |
---|---|
a | The first component in the revision path of the a-draft. |
aR | The second component in the revision path of the a-draft, if any. |
b | The first component in the revision path of the b-draft. |
bR | The second component in the revision path of the b-draft, if any. |
Key | Value | Default |
---|---|---|
s | The selectand specified as diff ordinal 'a' or 'b'. Use 's' or 's=b' to select the second revison of the pair. The choice affects links and other controls associated with the difference view and the stage. | 'a', or the first revision. |
CACHE_DURATION_YEAR
SHORT_STRING_LENGTH_MAX
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER
INTERFACE
Constructor and Description |
---|
WP_D(PageParameters pP)
Constructs a WP_D.
|
Modifier and Type | Method and Description |
---|---|
void |
renderHead(IHeaderResponse r) |
appendStyleClass, getCacheDuration, getPageIcon, inputLengthConstrained, invalidStyled, isCacheable, newLabelNBSP, newNullComponentAsLabel, newPagingNavigator, setCacheable, setCacheDuration, setHeaders, setPageIcon
emailAddressValidator, inputLengthValidator, newBodyOnlyFragment, newNullComponent, shortened, shortenedWords, stringNonEmpty, stringRequired, vApplication, vRequestCycle
configureResponse, dirty, getMarkupType, homePageLink, onAfterRender, onRender, renderXmlDecl
componentChanged, componentRendered, detachModels, dirty, endComponentRender, getAutoIndex, getId, getPageClass, getPageId, getPageParameters, getPageReference, getRenderCount, getSizeInBytes, getStatelessHint, hierarchyAsString, internalOnModelChanged, internalPrepareForRender, isBookmarkable, isErrorPage, isPageStateless, onBeforeRender, onDetach, onRedirect, renderPage, setFreezePageId, setNumericId, setStatelessHint, setWasCreatedBookmarkable, startComponentRender, toString, wasCreatedBookmarkable, wasRendered
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachModel, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFeedbackMessages, getFlag, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onComponentTag, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canCallListenerInterface, detach, get, getBehaviorById, getBehaviorId, getPage, getPageRelativePath
detach
public WP_D(PageParameters pP) throws IOException, SQLException, XMLStreamException
public void renderHead(IHeaderResponse r)
renderHead
in interface IHeaderContributor
renderHead
in class VPageHTML