Example usage for org.apache.wicket.markup.html.panel Fragment getId

List of usage examples for org.apache.wicket.markup.html.panel Fragment getId

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.panel Fragment getId.

Prototype

@Override
public String getId() 

Source Link

Document

Gets the id of this component.

Usage

From source file:org.hippoecm.addon.workflow.ActionDescription.java

License:Apache License

public final MarkupContainer add(final Fragment component) {
    String id = component.getId();
    if (get(id) != null) {
        return addOrReplace(component);
    } else {//from   w w  w.  j av  a2s.c o m
        return super.add(component);
    }
}

From source file:org.obiba.onyx.webapp.participant.panel.UpdateParticipantListPanel.java

License:Open Source License

private void replaceOrAddFragment(Fragment fragment) {
    Fragment currentFragment = (Fragment) get(fragment.getId());

    if (currentFragment != null) {
        replace(fragment);/*from w w  w.j av  a2 s.  c o  m*/
    } else {
        add(fragment);
    }
}