Example usage for org.apache.wicket.extensions.ajax.markup.html AjaxLazyLoadPanel setOutputMarkupId

List of usage examples for org.apache.wicket.extensions.ajax.markup.html AjaxLazyLoadPanel setOutputMarkupId

Introduction

In this page you can find the example usage for org.apache.wicket.extensions.ajax.markup.html AjaxLazyLoadPanel setOutputMarkupId.

Prototype

public final Component setOutputMarkupId(final boolean output) 

Source Link

Document

Sets whether or not component will output id attribute into the markup.

Usage

From source file:org.tdmx.console.pages.domain.DomainPage.java

License:Open Source License

private void createComponents() {
    AjaxLazyLoadPanel domainList = new AjaxLazyLoadPanel("domainList") {
        /**/*from   w  ww .j  a v  a2  s.co  m*/
         * 
         */
        private static final long serialVersionUID = 1L;

        @Override
        public Component getLazyLoadComponent(String id) {
            return new DomainListPanel(id);
        }

        @Override
        public Component getLoadingComponent(String markupId) {
            IRequestHandler handler = new ResourceReferenceRequestHandler(
                    FixBootstrapStylesCssResourceReference.INDICATOR);
            return new Label(markupId,
                    "<img alt=\"Loading...\" src=\"" + RequestCycle.get().urlFor(handler) + "\"/>")
                            .setEscapeModelStrings(false);
        }
    };
    domainList.setOutputMarkupId(true);

    addOrReplace(domainList);
}