Just added these lines

public void clearCachedKey(final String key, final Component component,
final IModel<?> model){
                clearCachedKey(key, component, model, null);
        }
        public void clearCachedKey(final String key, final Component component){
                clearCachedKey(key, component, null, null);
        }
        public void clearCachedKey(final String key, final Component component,
final String defaultValue){
                clearCachedKey(key, component, null, defaultValue);
        }

        public void clearCachedKey(final String key, final Component component,
final IModel<?> model,final String defaultValue){
                String cacheKey = getCacheKey(key, component);
                if( cacheKey != null ){
                        if( cache.containsKey( cacheKey )){
                                log.debug( "Removing key: " + cacheKey );
                                cache.remove( cacheKey );
                        }
                }
        }
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Clear-cached-key-Localizer-tp2713550p2713552.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to