public class OverlayIframeCloser
extends org.apache.wicket.markup.html.WebPage
If the iframe is on the same domain as the parent then specify OverlayIframeCloser.DomainSimilarity.SameDomain
and the overlay is closed first (it looks nice),
otherwise specify OverlayIframeCloser.DomainSimilarity.DifferentDomain
and it isn't (as the browser won't allow it due to cross-domain concerns.)
Usage:
Link<?> linkToResult = new BookmarkablePageLink("link", ...); setResponsePage(new OverlayIframeCloser( DomainSimilarity.SameDomain, linkToResult));
Modifier and Type | Class and Description |
---|---|
static class |
OverlayIframeCloser.DomainSimilarity |
Constructor and Description |
---|
OverlayIframeCloser(OverlayIframeCloser.DomainSimilarity domainSimilarity,
org.apache.wicket.markup.html.link.Link<?> destinationPage) |
componentRendered, detachModels, dirty, endComponentRender, getAutoIndex, getId, getPageClass, getPageId, getPageParameters, getPageReference, getRenderCount, getSizeInBytes, getStatelessHint, hierarchyAsString, internalPrepareForRender, isBookmarkable, isErrorPage, isPageStateless, onRedirect, renderPage, setFreezePageId, setNumericId, setStatelessHint, setWasCreatedBookmarkable, startComponentRender, toString, wasCreatedBookmarkable, wasRendered
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, internalAdd, internalInitialize, iterator, iterator, onComponentTagBody, remove, remove, removeAll, renderAssociatedMarkup, replace, setDefaultModel, size, swap, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, afterRender, beforeRender, canCallListenerInterface, configure, continueToOriginalDestination, debug, detach, determineVisibility, error, fatal, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, internalRenderComponent, isActionAuthorized, isAuto, isEnableAllowed, isEnabled, isEnabledInHierarchy, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onEvent, prepareForRender, redirectToInterceptPage, remove, remove, render, rendered, renderHead, renderHead, renderHead, replaceWith, sameInnermostModel, sameInnermostModel, send, setDefaultModelObject, setEnabled, setEscapeModelStrings, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
detach, get, getBehaviorById, getBehaviorId, getPage, getPageRelativePath
forEach, spliterator
public OverlayIframeCloser(OverlayIframeCloser.DomainSimilarity domainSimilarity, org.apache.wicket.markup.html.link.Link<?> destinationPage)
destinationPage
- wicket id of this link should be "link"