use of org.zkoss.zk.xel.impl.ExecutionResolver in project collect by openforis.
the class ComponentUtil method getCurrentComponent.
/**
* Returns the component handled by the current {@link Execution} object
* @return
*/
public static Component getCurrentComponent() {
Execution execution = Executions.getCurrent();
ExecutionResolver variableResolver = (ExecutionResolver) execution.getVariableResolver();
Object self = variableResolver.getSelf();
Component component = (Component) self;
return component;
}
Aggregations