@Override
  public void renderHead(Component component, IHeaderResponse headerResponse) {
    super.renderHead(component, headerResponse);

    headerResponse.render(JavaScriptHeaderItem.forReference(JS));
    headerResponse.render(OnDomReadyHeaderItem.forScript(createScript(component)));
  }
  @Override
  public void bind(Component component) {
    super.bind(component);

    component.setOutputMarkupId(true);
  }
Exemplo n.º 3
0
  @Override
  public void onConfigure(Component component) {
    super.onConfigure(component);

    component.add(new CssClassNameAppender(className(), type().cssClassName(className())));
  }
Exemplo n.º 4
0
  @Override
  public void onComponentTag(Component component, ComponentTag tag) {
    super.onComponentTag(component, tag);

    Components.assertTag(component, tag, "span");
  }