public abstract class AjaxExternalLink<T>
extends org.apache.wicket.markup.html.link.ExternalLink
implements org.apache.wicket.ajax.markup.html.IAjaxLink
The url will be set into the href attribute of the tag.
If you need the link to open in a new window, use jQuery.
<script type="text/javascript">
$(document).ready(function(){
$(function(){
$('a.new-window').click(function(){
window.open(this.href);
return false;
});
});
});
</script>
| Constructor and Description |
|---|
AjaxExternalLink(String id) |
AjaxExternalLink(String id,
String url) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.wicket.ajax.IAjaxCallDecorator |
getAjaxCallDecorator()
Returns ajax call decorator that will be used to decorate the ajax call.
|
abstract void |
onClick(org.apache.wicket.ajax.AjaxRequestTarget target)
Listener method invoked on the AJAX request generated when the user clicks the link
|
getLabel, getPopupSettings, isContextRelative, onComponentTag, onComponentTagBody, setContextRelative, setPopupSettingsdisableLink, getAfterDisabledLink, getBeforeDisabledLink, isLinkEnabled, onBeforeRender, setAfterDisabledLink, setBeforeDisabledLinkgetMarkupType, getWebPage, getWebRequestadd, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onAfterRenderChildren, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, internalOnModelChanged, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeginRequest, onConfigure, onDetach, onEndRequest, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrappublic AjaxExternalLink(String id)
protected org.apache.wicket.ajax.IAjaxCallDecorator getAjaxCallDecorator()
public abstract void onClick(org.apache.wicket.ajax.AjaxRequestTarget target)
onClick in interface org.apache.wicket.ajax.markup.html.IAjaxLinktarget - Copyright © 2008-2014 The Sakai Foundation. All Rights Reserved.