@ThreadRestricted(value="wicket") @StatelessComponent public final class WP_Poll extends VPageHTML implements TabbedPage
Key | Value | Default |
---|---|---|
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. |
reconstruct | Whether to construct the poll from scratch. A value of 'y' constructs the poll from scratch by ignoring any cached configuration items, while 'n' constructs it normally. Use 'y' after modifying the definition of the poll (or one of dependencies) on the wiki side, in order to see the effect on the server side immediately. Normally there would be a delay of indeterminate duration. | 'n' |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
WP_Poll.PollFetcher
A serializeable container for a poll and its latest count.
|
static class |
WP_Poll.SessionScope
Session scope for instances of WP_Poll.
|
Modifier and Type | Field and Description |
---|---|
(package private) static NavTab |
NAV_TAB
The navigation tab that fetches the poll overview page, an instance of WP_Poll.
|
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_Poll(PageParameters pP)
Constructs a WP_Poll.
|
Modifier and Type | Method and Description |
---|---|
(package private) static PollService |
ensurePoll(Class<? extends Page> pageClass,
PageParameters pP,
VRequestCycle cycle)
Fetches the poll correponding to the 'p' parameter.
|
static String |
maybeRedirect_P(Class<? extends Page> pageClass,
PageParameters pP,
VRequestCycle cycle)
Effects a redirect in response to missing mandatory parameters.
|
NavTab |
navTab(VRequestCycle cycle)
Finds and returns the navigation tab for this page.
|
(package private) static PollService |
pollFor(String name,
VRequestCycle cycle)
Fetches the poll corresponding to the specified service name.
|
(package private) static PollService |
pollOrNullFor(PageParameters pP,
VRequestCycle cycle)
Fetches the poll corresponding to query parameter 'p', if it is specified.
|
(package private) static PageParameters |
withRecall_p(PageParameters pP)
Returns the specified page parameters (pP) with a value for the poll parameter
('p') as recalled from the session.
|
appendStyleClass, getCacheDuration, getPageIcon, inputLengthConstrained, invalidStyled, isCacheable, newLabelNBSP, newNullComponentAsLabel, newPagingNavigator, renderHead, 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_Poll(PageParameters pP) throws IOException, ScriptException, SQLException
IOException
ScriptException
SQLException
static PollService ensurePoll(Class<? extends Page> pageClass, PageParameters pP, VRequestCycle cycle) throws IOException, ScriptException, SQLException
IOException
ScriptException
SQLException
pollFor(String,VRequestCycle)
public static String maybeRedirect_P(Class<? extends Page> pageClass, PageParameters pP, VRequestCycle cycle)
This method may also do a 301 (permanent) redirect in response to obsolete parameter values. Currently these include polls that had to be moved to new names for technical reasons.
static PollService pollFor(String name, VRequestCycle cycle) throws IOException, ScriptException, SQLException
static PollService pollOrNullFor(PageParameters pP, VRequestCycle cycle) throws IOException, ScriptException, SQLException
IOException
ScriptException
SQLException
pollFor(String,VRequestCycle)
static PageParameters withRecall_p(PageParameters pP)
pP
- the parameter map, which may be null.public NavTab navTab(VRequestCycle cycle)
TabbedPage
navTab
in interface TabbedPage
NAV_TAB