package org.orienteer.core.behavior;

import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxClientInfoBehavior;
import org.orienteer.core.OrienteerWebSession;

/**
 * Behavior to gather ClientInfo only once 
 */
public class OneTimeAjaxClientInfoBehavior extends AjaxClientInfoBehavior {

	@Override
	public boolean isEnabled(Component component) {
		return !OrienteerWebSession.get().isClientInfoAvailable();
	}
	
	@Override
	public boolean isTemporary(Component component) {
		return !isEnabled(component);
	}
}

@@ -426,105 +426,6 @@
 %0A%09%7D%0A
-%09%0A%09@Override%0A%09public boolean isTemporary(Component component) %7B%0A%09%09return !isEnabled(component);%0A%09%7D%0A
 %7D%0A

Fix InvalidBehaviorIdException due to dynamic swith to temporal behavior