コード例 #1
0
 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;
 }
コード例 #2
0
 @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>");
 }
コード例 #3
0
 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));
 }