public Resizable(final Component component, final ResizableConfig config) {
if (component.isRendered()) {
jsObj = create(component.getId(), config == null ? null : config.getJsObj());
} else {
lazyComponent = component;
component.addListener("render", new Function() {
public void execute() {
jsObj = create(component.getId(), config == null ? null : config.getJsObj());
}
});
}