/*
 * $Id$ $Revision$ $Date$
 * 
 * ==================================================================== Licensed
 * under the Apache License, Version 2.0 (the "License"); you may not use this
 * file except in compliance with the License. You may obtain a copy of the
 * License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package wicket.extensions.markup.html.tree;

import wicket.MarkupContainer;
import wicket.markup.IAlternateParentProvider;
import wicket.markup.html.WebPage;
import wicket.markup.html.border.Border;

/**
 * Base page with norder.
 */
public abstract class BorderedPage extends WebPage implements IAlternateParentProvider
{
	/** Border. */
	private Border border;

	/**
	 * Constructor.
	 */
	public BorderedPage()
	{
		border = new PageBorder(this, "border");
//		border.setTransparentResolver(true);
	}

	public MarkupContainer getAlternateParent()
	{
		return (this.border == null ? this : this.border);
	}
}

@@ -1119,96 +1119,216 @@
 %22);%0A
-//%09%09border.setTransparentResolver(true);%0A%09%7D%0A%0A%09public MarkupContainer getAlternateParent(
+%09%7D%0A%0A%09/**%0A%09 * %0A%09 * @see wicket.markup.IAlternateParentProvider#getAlternateParent(java.lang.Class, java.lang.String)%0A%09 */%0A%09public MarkupContainer getAlternateParent(final Class childClass, final String childId
 )%0A%09%7B

change IAlternateParentProvider to allow for more complex use cases