@ThreadRestricted(value="wicket") @StatelessComponent public final class WP_Votespace extends VPageHTML implements TabbedPage, VoterPage
http://reluk.ca:8080/v/w/Votespace?p=G!p!sandbox
The particular poll is specified by query parameter 'p'. Query parameters for this page are:
| Key | Value | Default | Recall |
|---|---|---|---|
| p | The name of the poll. Slash characters (/) are technically not allowed here and may therefore be encoded as exclamation marks (!). | Null, resulting in a 303 (see other) redirect that fills in the name of the test poll. | yes |
| recallRedirect | Recall parameters and redirect. The value is a set of recallable parameter names, separated by vertical bars (e.g. 'p|u'). The server attempts to recall the values from the context of recent requests, then responds with a corrected URL in the form of a 303 redirect. Parameters that are specified elsewhere in the request are not recalled in any case, and the values are passed as specified into the corrected URL. | Null, doing no redirection. | no |
| u | The username of the person at the top of the vote path. Incompatible with parameter 'v'; specify one or the other. | Null, specifying no particular person. | yes |
| v | The email address of the person at the top of the vote path. Incompatible with parameter 'u'; specify one or the other. | Null, specifying no particular person. | yes |
| vCor | Whether to correct the results for any vote shift of the user's since the last reported count. A value of 'y' corrects the results, while 'n' leaves them uncorrected. | 'y' | no |
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
WP_Votespace.FootnoteBuilder
An aid for constructing a set of footnotes.
|
(package private) static class |
WP_Votespace.VotespaceTab |
VoterPage.SessionScope, VoterPage.U| Modifier and Type | Field and Description |
|---|---|
static NavTab |
NAV_TAB
The navigation tab that fetches the votespace page, an instance of WP_Votespace.
|
CACHE_DURATION_YEARSHORT_STRING_LENGTH_MAXENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDERINTERFACE| Constructor and Description |
|---|
WP_Votespace(PageParameters pP)
Constructs a WP_Votespace.
|
| Modifier and Type | Method and Description |
|---|---|
IDPair |
getNewCandidate() |
(package private) static void |
maybeRecallRedirect(Class<? extends Page> pageClass,
PageParameters pP,
VRequestCycle cycle)
Effects a recall-redirect if requested.
|
NavTab |
navTab(VRequestCycle cycle)
Finds and returns the navigation tab for this page.
|
static PageParameters |
parameters(String serviceName,
VRequestCycle cycle)
Returns the query parameters for a particular votespace page.
|
void |
setNewCandidate(IDPair _newCandidate) |
String |
voterEmail()
Identifies the voter by canonical email address.
|
IDPair |
voterIDPair()
Identifies either the voter who is viewed on this page, or nobody.
|
String |
voterUsername()
The voter's username as derived from the email address.
|
appendStyleClass, getCacheDuration, getPageIcon, inputLengthConstrained, invalidStyled, isCacheable, newLabelNBSP, newNullComponentAsLabel, newPagingNavigator, renderHead, setCacheable, setCacheDuration, setHeaders, setPageIconemailAddressValidator, inputLengthValidator, newBodyOnlyFragment, newNullComponent, shortened, shortenedWords, stringNonEmpty, stringRequired, vApplication, vRequestCycleconfigureResponse, dirty, getMarkupType, homePageLink, onAfterRender, onRender, renderXmlDeclcomponentChanged, 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, wasRenderedadd, 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, visitChildrenadd, 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, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanCallListenerInterface, detach, get, getBehaviorById, getBehaviorId, getPage, getPageRelativePathdetachpublic WP_Votespace(PageParameters pP) throws IOException, ScriptException, SQLException, XMLStreamException
static void maybeRecallRedirect(Class<? extends Page> pageClass, PageParameters pP, VRequestCycle cycle)
public static PageParameters parameters(String serviceName, VRequestCycle cycle)
@Warning(value="non-API") public IDPair getNewCandidate()
@Warning(value="non-API") public void setNewCandidate(IDPair _newCandidate)
public NavTab navTab(VRequestCycle cycle)
TabbedPagenavTab in interface TabbedPageNAV_TABpublic String voterEmail()
VoterPagevoterEmail in interface VoterPageVoterPage.voterIDPair()public IDPair voterIDPair()
VoterPagevoterIDPair in interface VoterPageVoterPage.voterEmail(),
VoterPage.voterUsername()public String voterUsername()
VoterPagevoterUsername in interface VoterPageVoterPage.voterIDPair()