Example usage for org.apache.wicket.markup ComponentTag setHasNoCloseTag

List of usage examples for org.apache.wicket.markup ComponentTag setHasNoCloseTag

Introduction

In this page you can find the example usage for org.apache.wicket.markup ComponentTag setHasNoCloseTag.

Prototype

public void setHasNoCloseTag(boolean hasNoCloseTag) 

Source Link

Document

True if the HTML tag (e.g.

Usage

From source file:com.userweave.components.authorization.AuthOnlyTextField.java

License:Open Source License

@Override
protected void onIsAuthorizedComponentTag(ComponentTag tag) {
    tag.setName("input");
    tag.put("type", "text");
    tag.put("value", getValue());
    tag.setHasNoCloseTag(true);
}

From source file:org.efaps.ui.wicket.components.table.RowContainer.java

License:Apache License

@Override
protected void onComponentTag(final ComponentTag _tag) {
    super.onComponentTag(_tag);
    _tag.setName("tr");
    _tag.setHasNoCloseTag(true);
}

From source file:org.wicketstuff.datatable_autocomplete.button.DTAButton.java

License:Apache License

@Override
protected void onComponentTag(ComponentTag tag) {

    // this allows the button to be used in a repeater
    tag.setName("input");
    tag.setHasNoCloseTag(true);

    super.onComponentTag(tag);

    tag.getAttributes().put("type", "submit");
}

From source file:org.wicketstuff.datatable_autocomplete.radio.DTARadio.java

License:Apache License

@Override
protected void onComponentTag(ComponentTag tag) {

    if (tag.isOpenClose()) {

        tag.setHasNoCloseTag(true);

        tag.setType(XmlTag.TagType.OPEN);

    }//w w  w  . ja  v  a2  s .c  o  m

    tag.setName("input");
    tag.getAttributes().put("type", "radio");

    // Default handling for component tag
    super.onComponentTag(tag);

}