/** * */ protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { super.onComponentTagBody(markupStream, openTag); }
@Override public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { this.replaceComponentTagBody(markupStream, openTag, contentModel.getObject()); super.onComponentTagBody(markupStream, openTag); }
@Override public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { this.replaceComponentTagBody(markupStream, openTag, titleModel.getObject()); super.onComponentTagBody(markupStream, openTag); }
@Override public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { Object modelObject = getDefaultModelObject(); final String text = modelObject != null ? modelObject.toString() : null; if (text != null) { replaceComponentTagBody(markupStream, openTag, text); } else { super.onComponentTagBody(markupStream, openTag); } } }
@Override public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { this.replaceComponentTagBody(markupStream, openTag, getDefaultModelObjectAsString()); super.onComponentTagBody(markupStream, openTag); } }
/** * Append an additional hidden input tag to support anchor tags that can submit a form. * * @param markupStream * The markup stream * @param openTag * The open tag for the body */ @Override public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { if (isRootForm()) { // get the hidden field id writeHiddenFields(); } // do the rest of the processing super.onComponentTagBody(markupStream, openTag); }
/** * Append an additional hidden input tag to support anchor tags that can submit a form. * * @param markupStream * The markup stream * @param openTag * The open tag for the body */ @Override public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { if (isRootForm()) { // get the hidden field id writeHiddenFields(); } // do the rest of the processing super.onComponentTagBody(markupStream, openTag); }
/** * Renders this link's body. * * @param markupStream * the markup stream * @param openTag * the open part of this tag * @see org.apache.wicket.Component#onComponentTagBody(MarkupStream, ComponentTag) */ @Override public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // Get a copy of the body model from the getBody() method. This method could be overridden. IModel<?> tmpBodyModel = getBody(); if ((tmpBodyModel != null) && (tmpBodyModel.getObject() != null)) { replaceComponentTagBody(markupStream, openTag, getDefaultModelObjectAsString(tmpBodyModel.getObject())); } else { // Render the body of the link super.onComponentTagBody(markupStream, openTag); } }
/** * Renders this link's body. * * @param markupStream * the markup stream * @param openTag * the open part of this tag * @see org.apache.wicket.Component#onComponentTagBody(MarkupStream, ComponentTag) */ @Override public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // Get a copy of the body model from the getBody() method. This method could be overridden. IModel<?> tmpBodyModel = getBody(); if ((tmpBodyModel != null) && (tmpBodyModel.getObject() != null)) { replaceComponentTagBody(markupStream, openTag, getDefaultModelObjectAsString(tmpBodyModel.getObject())); } else { // Render the body of the link super.onComponentTagBody(markupStream, openTag); } }
@Override public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { super.onComponentTagBody(markupStream, openTag); String fileName = model.getObject().getFileName(); if (fileName != null) { getResponse().write(fileName); openTag.getAttributes().put("title", fileName); } }
/** * @see org.apache.wicket.MarkupContainer#onComponentTagBody(org.apache.wicket.markup.MarkupStream, * org.apache.wicket.markup.ComponentTag) */ @Override protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { if (wasOpenCloseTag == false) { // It is open-preview-close. Only RawMarkup is allowed within // the preview region, which gets stripped from output markupStream.skipRawMarkup(); } // this check always results in false for normal requests. // in case of ajax requests, the markupstream is not reset after the first render, thus // the current index of the markup stream points to the element after the body. // as a result, no elements are detected and always omitted. if (beginOfBodyIndex != originalMarkupStream.getCurrentIndex()) { originalMarkupStream.setCurrentIndex(beginOfBodyIndex); } super.onComponentTagBody(originalMarkupStream, Border.this.openTag); }
/** * @see org.apache.wicket.MarkupContainer#onComponentTagBody(org.apache.wicket.markup.MarkupStream, * org.apache.wicket.markup.ComponentTag) */ protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { if (wasOpenCloseTag == false) { // It is open-preview-close. Only RawMarkup is allowed within // the preview region, which gets stripped from output markupStream.skipRawMarkup(); } // this check always results in false for normal requests. // in case of ajax requests, the markupstream is not reset after the first render, thus // the current index of the markup stream points to the element after the body. // as a result, no elements are detected and always omitted. if (beginOfBodyIndex != originalMarkupStream.getCurrentIndex()) { originalMarkupStream.setCurrentIndex(beginOfBodyIndex); } super.onComponentTagBody(originalMarkupStream, Border.this.openTag); }
@Override public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { if(hasIconType() && getType().getTagBody() != null) { replaceComponentTagBody(markupStream, openTag, getType().getTagBody()); } else { super.onComponentTagBody(markupStream, openTag); } } }
@Override public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // skip the <wicket:body> body if (markupStream.getPreviousTag().isOpen()) { // Only RawMarkup is allowed within the preview region, // which gets stripped from output markupStream.skipRawMarkup(); } // Get the <span wicket:id="myBorder"> markup and render that instead IMarkupFragment markup = Border.this.getMarkup(); MarkupStream stream = new MarkupStream(markup); ComponentTag tag = stream.getTag(); stream.next(); super.onComponentTagBody(stream, tag); }
@Override public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // skip the <wicket:body> body if (markupStream.getPreviousTag().isOpen()) { // Only RawMarkup is allowed within the preview region, // which gets stripped from output markupStream.skipRawMarkup(); } // Get the <span wicket:id="myBorder"> markup and render that instead IMarkupFragment markup = Border.this.getMarkup(); MarkupStream stream = new MarkupStream(markup); ComponentTag tag = stream.getTag(); stream.next(); super.onComponentTagBody(stream, tag); }
super.onComponentTagBody(markupStream, enclosureOpenTag);
super.onComponentTagBody(markupStream, openTag);
super.onComponentTagBody(markupStream, openTag);
super.onComponentTagBody(markupStream, openTag);
super.onComponentTagBody(markupStream, openTag);