*
*/
@SuppressWarnings("serial")
public TraditionalEnclosureAjaxPage()
{
add((traditionalAjaxVisibilityToggleRequiresPlaceholder = new WebMarkupContainer(
"toggleable-placeholder")
{
@Override
public boolean isVisible()
{
return get(toggleableChildId).isVisible();
}
}).setOutputMarkupPlaceholderTag(true));
Assert.assertEquals("Ajax requires tag to remain in DOM even if not visible", true,
traditionalAjaxVisibilityToggleRequiresPlaceholder.getOutputMarkupPlaceholderTag());
{
traditionalAjaxVisibilityToggleRequiresPlaceholder.add((toggleable = new WebMarkupContainer(
toggleableChildId = "toggleable")).setOutputMarkupPlaceholderTag(true));
add(link = new AjaxLink<Void>("link")
{
@Override
public void onClick(AjaxRequestTarget target)