Search in sources :

Example 26 with IMarkupFragment

use of org.apache.wicket.markup.IMarkupFragment in project wicket by apache.

the class Panel method getRegionMarkup.

/**
 * Returns the markup inside <wicket:panel> tag.
 * If such tag is not found, all the markup is returned.
 *
 * @see IQueueRegion#getRegionMarkup()
 */
@Override
public IMarkupFragment getRegionMarkup() {
    IMarkupFragment markup = super.getRegionMarkup();
    if (markup == null) {
        return markup;
    }
    IMarkupFragment panelMarkup = MarkupUtil.findStartTag(markup, PANEL);
    return panelMarkup != null ? panelMarkup : markup;
}
Also used : IMarkupFragment(org.apache.wicket.markup.IMarkupFragment)

Aggregations

IMarkupFragment (org.apache.wicket.markup.IMarkupFragment)26 Test (org.junit.Test)8 Page (org.apache.wicket.Page)6 ComponentTag (org.apache.wicket.markup.ComponentTag)6 MarkupStream (org.apache.wicket.markup.MarkupStream)6 MarkupContainer (org.apache.wicket.MarkupContainer)5 MarkupException (org.apache.wicket.markup.MarkupException)4 Component (org.apache.wicket.Component)3 MarkupElement (org.apache.wicket.markup.MarkupElement)3 MarkupNotFoundException (org.apache.wicket.markup.MarkupNotFoundException)3 ArrayList (java.util.ArrayList)2 Locale (java.util.Locale)2 WicketRuntimeException (org.apache.wicket.WicketRuntimeException)2 MarkupResourceStream (org.apache.wicket.markup.MarkupResourceStream)2 WicketTag (org.apache.wicket.markup.WicketTag)2 Border (org.apache.wicket.markup.html.border.Border)2 Panel (org.apache.wicket.markup.html.panel.Panel)2 IComponentResolver (org.apache.wicket.markup.resolver.IComponentResolver)2 IOException (java.io.IOException)1 List (java.util.List)1