Deprecated API


Contents
Deprecated Interfaces
org.apache.wicket.IComponentSource
          Will be removed in Wicket 6.0 
org.apache.wicket.util.tester.ITestPageSource
          since 1.5 No longer needed 
org.apache.wicket.util.tester.ITestPanelSource
          since 1.5 No longer needed 
 

Deprecated Classes
org.apache.wicket.behavior.AbstractBehavior
          extend Behavior instead 
org.apache.wicket.markup.html.border.MarkupComponentBorder
          Please use BorderBehavior instead. 
org.apache.wicket.behavior.SimpleAttributeModifier
          use AttributeModifier.replace(String, java.io.Serializable) instead 
org.apache.wicket.util.string.UrlUtils
          Use UrlUtils instead. 
 

Deprecated Exceptions
org.apache.wicket.util.io.SerializableChecker.WicketNotSerializableException
          ObjectCheckException is thrown instead 
org.apache.wicket.util.io.WicketSerializeableException
          Superceded by SerializableChecker.WicketNotSerializableException 
 

Deprecated Fields
org.apache.wicket.markup.parser.filter.WicketMessageTagHandler.ATTRIBUTE_LOCALIZER
          Do not use it because it is not aware of the markup namespace 
 

Deprecated Methods
org.apache.wicket.ajax.AjaxRequestTarget.addComponent(Component...)
          use AjaxRequestTarget.add(Component...) instead 
org.apache.wicket.ajax.AjaxRequestTarget.addComponent(Component, String)
          use AjaxRequestTarget.add(Component...) instead 
org.apache.wicket.Component.canCallListenerInterface()
          use Component.canCallListenerInterface(Method) instead 
org.apache.wicket.behavior.Behavior.canCallListenerInterface(Component)
          use Behavior.canCallListenerInterface(Component, Method) 
org.apache.wicket.markup.html.image.resource.BlobImageResource.getBlob()
          Use #getBlob(Attributes) instead. 
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.getChannelName()
          Use AbstractDefaultAjaxBehavior.getChannel() instead 
org.apache.wicket.markup.html.link.ExternalLink.getLabel()
          use AbstractLink.getBody() instead 
org.apache.wicket.settings.ISessionSettings.getPageFactory()
          Use Session.getPageFactory() 
org.apache.wicket.settings.def.SessionSettings.getPageFactory()
          Use Session.getPageFactory() 
org.apache.wicket.protocol.http.mock.MockHttpServletRequest.getRealPath(String)
          Use ServletContext.getRealPath(String) instead. 
org.apache.wicket.protocol.http.mock.MockHttpSession.getSessionContext()
            
org.apache.wicket.resource.aggregation.ResourceReferenceAndStringData.getString()
          use ResourceReferenceAndStringData.getIdOrMedia() instead 
org.apache.wicket.markup.ComponentTag.getString(String)
          since 1.5 
org.apache.wicket.protocol.http.mock.MockHttpServletResponse.getTextResponse()
          use MockHttpServletResponse.getDocument() 
org.apache.wicket.settings.IRequestCycleSettings.getUnexpectedExceptionDisplay()
          Use IExceptionSettings#getUnexpectedExceptionDisplay() 
org.apache.wicket.protocol.http.mock.MockHttpSession.getValue(String)
          use getAttribute(String) instead 
org.apache.wicket.protocol.http.mock.MockHttpSession.getValueNames()
          use getAttributeNames() instead 
org.apache.wicket.MarkupContainer.hasAssociatedMarkup()
          Use #getAssociatedMarkup() != null instead 
org.apache.wicket.markup.MarkupFactory.hasAssociatedMarkup(MarkupContainer)
          please use MarkupFactory.getMarkup(MarkupContainer, boolean) instead 
org.apache.wicket.util.string.interpolator.PropertyVariableInterpolator.interpolate(String, Object)
            
org.apache.wicket.util.io.SerializableChecker.isAvailable()
          Use ObjectChecker#isAvailable() instead 
org.apache.wicket.resource.aggregation.ResourceReferenceAndStringData.isCss()
          Use ResourceReferenceAndStringData.getResourceType() instead. 
org.apache.wicket.Component.locateMarkupStream()
          Use findMarkupStream() instead. 
org.apache.wicket.feedback.FeedbackMessages.messageForComponent(Component)
          use FeedbackMessages.messagesForComponent(org.apache.wicket.Component) instead 
org.apache.wicket.markup.html.SecurePackageResourceGuard.newCache()
          Pass the cache as a parameter to the constructor 
org.apache.wicket.protocol.http.servlet.ErrorAttributes.of(HttpServletRequest)
          Use ErrorAttributes#of(HttpServletRequest, String) instead. 
org.apache.wicket.protocol.http.servlet.ForwardAttributes.of(HttpServletRequest)
          Use ForwardAttributes#of(HttpServletRequest, String) instead 
org.apache.wicket.Component.onMarkupAttached()
          Use #onInitialize() instead. 
org.apache.wicket.protocol.http.mock.MockHttpSession.putValue(String, Object)
          Use setAttribute(String, Object) instead 
org.apache.wicket.protocol.http.mock.MockHttpSession.removeValue(String)
          Use removeAttribute(String) instead 
org.apache.wicket.markup.html.image.resource.RenderedDynamicImageResource.render()
          Use RenderedDynamicImageResource.render(org.apache.wicket.request.resource.IResource.Attributes) instead. 
org.apache.wicket.markup.html.image.resource.RenderedDynamicImageResource.render(Graphics2D)
          Use instead 
org.apache.wicket.resource.ResourceUtil.renderTo(IHeaderResponse, ResourceReference, boolean, String)
          Will be removed in the next major release 
org.apache.wicket.util.string.UrlUtils.rewriteToContextRelative(String, RequestCycle)
          use UrlUtils.rewriteToContextRelative(String, org.apache.wicket.request.IRequestCycle) instead 
org.apache.wicket.settings.ISessionSettings.setPageFactory(IPageFactory)
          Use Application.newPageFactory() instead. 
org.apache.wicket.settings.def.SessionSettings.setPageFactory(IPageFactory)
          Use Application.newPageFactory() instead. 
org.apache.wicket.markup.html.link.BookmarkablePageLink.setParameter(String, int)
          Use BookmarkablePageLink.getPageParameters().set() instead 
org.apache.wicket.markup.html.link.BookmarkablePageLink.setParameter(String, long)
          Use BookmarkablePageLink.getPageParameters().set() instead 
org.apache.wicket.markup.html.link.BookmarkablePageLink.setParameter(String, String)
          Use BookmarkablePageLink.getPageParameters().set() instead 
org.apache.wicket.protocol.http.mock.MockHttpServletResponse.setStatus(int, String)
            
org.apache.wicket.settings.IRequestCycleSettings.setUnexpectedExceptionDisplay(IExceptionSettings.UnexpectedExceptionDisplay)
          Use IExceptionSettings#setUnexpectedExceptionDisplay(UnexpectedExceptionDisplay) 
org.apache.wicket.util.tester.BaseWicketTester.startPage(ITestPageSource)
          since 1.5 use BaseWicketTester.startPage(Page) instead 
org.apache.wicket.util.tester.BaseWicketTester.startPanel(Class)
          Use startComponentInPage(Class) instead 
org.apache.wicket.util.tester.BaseWicketTester.startPanel(ITestPanelSource)
          since 1.5 use BaseWicketTester.startComponentInPage(Class, IMarkupFragment) instead 
org.apache.wicket.Component.urlFor(Behavior, RequestListenerInterface)
          use Component.urlFor(Behavior, RequestListenerInterface, PageParameters) with explit parameters 
org.apache.wicket.Component.urlFor(RequestListenerInterface)
          use Component.urlFor(RequestListenerInterface, PageParameters) with explicit page parameters 
 

Deprecated Constructors
org.apache.wicket.behavior.AttributeAppender(String, boolean, IModel, String)
          use AttributeAppender.AttributeAppender(String, IModel) instead. 
org.apache.wicket.AttributeModifier(String, boolean, IModel)
          AttributeModifier will now always add the attribute if not present, use AttributeModifier.AttributeModifier(String, IModel) instead 
org.apache.wicket.resource.aggregation.ResourceReferenceAndStringData(ResourceReference, String, boolean)
          use the other constructors instead 
 



Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.