public IMarkupFragment getMarkup() { IMarkupFragment enclosureMarkup = null; if (this.enclosureMarkupAsString == null) { final IMarkupFragment markup = super.getMarkup(); if (markup != null && markup != Markup.NO_MARKUP) { enclosureMarkup = markup; this.enclosureMarkupAsString = markup.toString(true); } } else { enclosureMarkup = Markup.of(this.enclosureMarkupAsString); } return enclosureMarkup; }
@Override public IMarkupFragment getMarkup() { return Markup.of( "<html><wicket:head></wicket:head><body><form wicket:id=\"form\"><input type=\"text\" wicket:id=\"amount\" /></form></body></html>"); }
private static void render(BootstrapRadioChoice<String> choice, String initialMarkup) { MarkupStream stream = new MarkupStream(Markup.of(initialMarkup)); stream.setCurrentIndex(1); choice.onComponentTagBody(stream, new ComponentTag("div", TagType.OPEN)); }