Example usage for org.apache.wicket Component setOutputMarkupId

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

Introduction

In this page you can find the example usage for org.apache.wicket Component 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:com.ecom.web.components.gmap.api.GInfoWindowTab.java

License:Apache License

/**
 * Construct./*  ww  w  .  j a  v a  2  s.c  om*/
 * 
 * @param title
 * @param content
 */
public GInfoWindowTab(String title, Component content) {
    this.title = title;
    this.content = content;

    content.setOutputMarkupId(true);
}

From source file:com.evolveum.midpoint.web.component.assignment.AssignmentEditorPanel.java

License:Apache License

private void addAjaxOnBlurUpdateBehaviorToComponent(final Component component) {
    component.setOutputMarkupId(true);
    component.add(new AjaxFormComponentUpdatingBehavior("onBlur") {

        @Override//from  w w w  .  j  a v  a2s.co m
        protected void onUpdate(AjaxRequestTarget target) {
        }
    });
}

From source file:com.evolveum.midpoint.web.page.admin.users.component.MergeObjectsPanel.java

License:Apache License

private Component getMergeResultObjectPanel() {
    Component mergeObjectsResultPanel;
    if (mergeResultObject != null) {
        mergeObjectsResultPanel = new MergeObjectDetailsPanel(ID_MERGE_RESULT_OBJECT_DETAILS_PANEL,
                mergeResultObject.asObjectable(), type);
    } else {//w  w  w .  j  a v  a2s . c o  m
        mergeObjectsResultPanel = new Label(ID_MERGE_RESULT_OBJECT_DETAILS_PANEL,
                pageBase.createStringResource("PageMergeObjects.noMergeResultObjectWarning"));
    }
    mergeObjectsResultPanel.setOutputMarkupId(true);
    return mergeObjectsResultPanel;
}

From source file:com.evolveum.midpoint.web.util.SearchFormEnterBehavior.java

License:Apache License

@Override
public void onConfigure(Component component) {
    super.onConfigure(component);

    component.setOutputMarkupId(true);
    target.setOutputMarkupId(true);//ww w  . j a v  a 2 s .  co  m
}

From source file:com.evolveum.midpoint.web.util.TooltipBehavior.java

License:Apache License

@Override
public void onConfigure(final Component component) {
    component.setOutputMarkupId(true);

    component.add(AttributeModifier.replace("data-toggle", "tooltip"));
    component.add(new AttributeModifier("data-placement", "right") {

        @Override//from w ww .  jav  a  2  s .  c  o  m
        protected String newValue(String currentValue, String replacementValue) {
            if (StringUtils.isEmpty(currentValue)) {
                return replacementValue;
            }
            return currentValue;
        }
    });
}

From source file:com.example.justaddwater.web.app.DefaultFocusBehavior.java

License:Apache License

@Override
public void bind(Component component) {
    if (!(component instanceof FormComponent)) {
        throw new IllegalArgumentException("DefaultFocusBehavior: component must be instanceof FormComponent");
    }//from  w w w . j  a  v a  2s. c  o m

    component.setOutputMarkupId(true);
}

From source file:com.francetelecom.clara.cloud.presentation.tools.FieldFeedbackDecorator.java

License:Apache License

public void bind(Component component) {
    component.setOutputMarkupId(true);
}

From source file:com.google.code.jqwicket.ui.validationengine.ValidationEngineFormComponentBehavior.java

License:Apache License

/**
 * {@inheritDoc}/*w  w  w  .j av  a2  s  .  c  om*/
 */
@Override
public void bind(Component component) {
    super.bind(component);
    component.setOutputMarkupId(true);
}

From source file:com.googlecode.wickedcharts.wicket15.highcharts.features.basic.ChartBehavior.java

License:Apache License

@Override
public void renderHead(final Component component, final IHeaderResponse response) {

    component.setOutputMarkupId(true);
    Options options = this.chart.getOptions();
    final String id = component.getMarkupId();
    OptionsUtil.getInstance().setRenderTo(options, id);

    JsonRenderer renderer = JsonRendererFactory.getInstance().getRenderer();
    includeJavascriptDependencies(response, options);
    addTheme(response, renderer);/*from  ww  w.j a va 2  s .  c  o m*/

    OptionsProcessorContext context = new OptionsProcessorContext(options);

    IOptionsProcessor featureProcessor = new FeatureCheckingOptionsProcessor(SUPPORTED_FEATURES);
    featureProcessor.processOptions(this.chart.getOptions(), context);

    DrilldownProcessor drilldownProcessor = new DrilldownProcessor(component, response);
    drilldownProcessor.processOptions(options, context);

    GlobalProcessor globalProcessor = new GlobalProcessor(response);
    globalProcessor.processOptions(options, context);

    includeChartJavascript(response, options, renderer, id);
}

From source file:com.googlecode.wickedcharts.wicket6.highcharts.features.basic.ChartBehavior.java

License:Apache License

@Override
public void renderHead(final Component component, final IHeaderResponse response) {

    component.setOutputMarkupId(true);
    Options options = this.chart.getOptions();
    final String id = component.getMarkupId();
    OptionsUtil.getInstance().setRenderTo(options, id);

    JsonRenderer renderer = JsonRendererFactory.getInstance().getRenderer();
    includeJavascriptDependencies(response, options);
    addTheme(response, renderer);/* w  w  w. j  av  a  2s . c  o  m*/

    OptionsProcessorContext context = new OptionsProcessorContext(options);

    DrilldownProcessor drilldownProcessor = new DrilldownProcessor(component, response);
    drilldownProcessor.processOptions(options, context);

    GlobalProcessor globalProcessor = new GlobalProcessor(response);
    globalProcessor.processOptions(options, context);

    includeChartJavascript(response, options, renderer, id);
}