/** * * @see org.apache.wicket.Component#onComponentTagBody(org.apache.wicket.markup.MarkupStream, * org.apache.wicket.markup.ComponentTag) */ protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // Skip the components body. It will be replaced by the fragment if (((ComponentTag)markupStream.get(markupStream.getCurrentIndex() - 1)).isOpen()) { markupStream.skipRawMarkup(); } final MarkupStream providerMarkupStream = chooseMarkupStream(markupStream); if (providerMarkupStream == null) { throw new MarkupNotFoundException( "Fragment: No markup stream found for providing markup container " + markupProvider.toString() + ". Fragment: " + toString()); } renderFragment(providerMarkupStream, openTag); }
/** * * @see org.apache.wicket.Component#onComponentTagBody(org.apache.wicket.markup.MarkupStream, * org.apache.wicket.markup.ComponentTag) */ @Override protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // Skip the components body. It will be replaced by the fragment if (((ComponentTag)markupStream.get(markupStream.getCurrentIndex() - 1)).isOpen()) { markupStream.skipRawMarkup(); } final MarkupStream providerMarkupStream = chooseMarkupStream(markupStream); if (providerMarkupStream == null) { throw new MarkupNotFoundException( "Fragment: No markup stream found for providing markup container " + markupProvider.toString() + ". Fragment: " + toString()); } renderFragment(providerMarkupStream, openTag); }