Author: mgrigorov Date: Sat May 7 19:45:14 2011 New Revision: 1100606 URL: http://svn.apache.org/viewvc?rev=1100606&view=rev Log: Add javadoc that IAjaxCallDecorator can contribute to the page header by implementing IHeaderContributor.
Modified: wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/IAjaxCallDecorator.java Modified: wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/IAjaxCallDecorator.java URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/IAjaxCallDecorator.java?rev=1100606&r1=1100605&r2=1100606&view=diff ============================================================================== --- wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/IAjaxCallDecorator.java (original) +++ wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/IAjaxCallDecorator.java Sat May 7 19:45:14 2011 @@ -18,6 +18,7 @@ package org.apache.wicket.ajax; import org.apache.wicket.Component; import org.apache.wicket.IClusterable; +import org.apache.wicket.markup.html.IHeaderContributor; /** * Interface used to decorate a wicket generated javascript that performs an ajax callback @@ -52,6 +53,11 @@ import org.apache.wicket.IClusterable; * return "alert('Before ajax call')" + script; // missing ";" * </pre> * + * <p> + * Ajax call decorators are potential contributors to the page header by implementing + * {@link IHeaderContributor}. E.g. the decoration may depend on some JavaScript library, by + * implementing {@link IHeaderContributor} interface they can assure it will be loaded. + * * @since 1.2 * * @author Igor Vaynberg (ivaynberg)