Search in sources :

Example 1 with MarkupCache

use of org.apache.wicket.markup.MarkupCache in project oc-explorer by devgateway.

the class MarkupCacheService method flushMarkupCache.

/**
 * Flush markup cache for reports page
 */
public final void flushMarkupCache() {
    final MarkupCache markupCacheClass = (MarkupCache) MarkupCache.get();
    final MarkupCache.ICache<String, Markup> markupCache = markupCacheClass.getMarkupCache();
    final Collection<String> keys = markupCache.getKeys();
    for (String key : keys) {
        // should end in "ReportPage"
        if (key.startsWith(START_NAME_REPORT_KEY)) {
            markupCacheClass.removeMarkup(key);
        }
    }
}
Also used : MarkupCache(org.apache.wicket.markup.MarkupCache) Markup(org.apache.wicket.markup.Markup)

Example 2 with MarkupCache

use of org.apache.wicket.markup.MarkupCache in project ocvn by devgateway.

the class MarkupCacheService method flushMarkupCache.

/**
 * Flush markup cache for reports page
 */
public final void flushMarkupCache() {
    final MarkupCache markupCacheClass = (MarkupCache) MarkupCache.get();
    final MarkupCache.ICache<String, Markup> markupCache = markupCacheClass.getMarkupCache();
    final Collection<String> keys = markupCache.getKeys();
    for (String key : keys) {
        // should end in "ReportPage"
        if (key.startsWith(START_NAME_REPORT_KEY)) {
            markupCacheClass.removeMarkup(key);
        }
    }
}
Also used : MarkupCache(org.apache.wicket.markup.MarkupCache) Markup(org.apache.wicket.markup.Markup)

Aggregations

Markup (org.apache.wicket.markup.Markup)2 MarkupCache (org.apache.wicket.markup.MarkupCache)2