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

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

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.panel Fragment 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:de.alpharogroup.wicket.components.examples.fragment.swapping.AddressPanel.java

License:Apache License

/**
 * Creates the fragment edit address./* www.j  ava2s.c o  m*/
 *
 * @return the fragment
 */
private Fragment createFragmentEditAddress() {
    final Fragment editAddress = new Fragment("group", "edit", this, getDefaultModel());

    editAddress.setOutputMarkupPlaceholderTag(true);
    editAddress.add(createAddressForm());
    return editAddress;
}

From source file:de.alpharogroup.wicket.components.examples.fragment.swapping.AddressPanel.java

License:Apache License

/**
 * Creates the fragment view address.//from w  w w. j  a va2s . c  o  m
 *
 * @return the fragment
 */
private Fragment createFragmentViewAddress() {
    final Fragment viewAddress = new Fragment("group", "view", this, getDefaultModel());
    viewAddress.add(new Label("street"));
    viewAddress.add(new Label("localNumber"));
    viewAddress.add(new Label("city"));
    viewAddress.add(new Label("code"));
    viewAddress.setOutputMarkupPlaceholderTag(true);
    return viewAddress;
}

From source file:de.alpharogroup.wicket.components.swap.SwapComponentsFragmentPanel.java

License:Apache License

/**
 * {@inheritDoc}// w ww . ja  v a 2 s.c o  m
 */
@Override
protected Fragment newEditFragment(final String id) {
    final Fragment editFragment = new Fragment(id, "edit", this, getDefaultModel());
    editFragment.setOutputMarkupPlaceholderTag(true);
    editFragment.add(newEditComponent("editComponent", getModel()));
    return editFragment;
}

From source file:de.alpharogroup.wicket.components.swap.SwapComponentsFragmentPanel.java

License:Apache License

/**
 * {@inheritDoc}/*  w  w  w  .  j a  v  a 2  s.  c  o  m*/
 */
@Override
protected Fragment newViewFragment(final String id) {
    final Fragment viewFragment = new Fragment(id, "view", this, getModel());
    viewFragment.setOutputMarkupPlaceholderTag(true);
    viewFragment.add(newViewComponent("viewComponent", getModel()));
    return viewFragment;
}