Example usage for org.apache.wicket Component setOutputMarkupPlaceholderTag

List of usage examples for org.apache.wicket Component setOutputMarkupPlaceholderTag

Introduction

In this page you can find the example usage for org.apache.wicket Component setOutputMarkupPlaceholderTag.

Prototype

public final Component setOutputMarkupPlaceholderTag(final boolean outputTag) 

Source Link

Document

Render a placeholder tag when the component is not visible.

Usage

From source file:org.wicketstuff.datatable_autocomplete.panel.AbstractAutoCompleteDependencyProcessor.java

License:Apache License

/**
 * // ww w.  j ava 2  s .c o m
 */
public AbstractAutoCompleteDependencyProcessor(String[] names, Component[] components) {

    super();

    queryParameterToComponentMap = new LinkedHashMap<String, Component>();

    for (int i = 0; i < components.length; i++) {
        String parameter = names[i];
        Component component = components[i];

        // to guarantee that the markupid will be generated
        component.setOutputMarkupId(true);
        component.setOutputMarkupPlaceholderTag(true);

        queryParameterToComponentMap.put(parameter, component);

    }

}