Object object = viewState.getMetaObject().getObject(); viewState.setComponent(RenderKit.getInstance().render(context, object)); viewState.setContext(context);
if (metaObject instanceof MetaSlot && viewState.getHiddenSlots().size() > 0) { viewState.setComponent(new HtmlText()); } else { Object object = metaObject.getObject(); viewState.setComponent(RenderKit.getInstance().render(context, object, metaObject.getType())); }
    public HtmlComponent restoreComponent(IViewState viewState) throws InstantiationException, IllegalAccessException {        viewState.setPostBack(true);                String layout = viewState.getLayout();        Properties properties = viewState.getProperties();        Class contextClass = viewState.getContextClass();                InputContext context = (InputContext) contextClass.newInstance();        context.setLayout(layout);        context.setProperties(properties);        context.setViewState(viewState);                MetaObject metaObject = viewState.getMetaObject();        metaObject.setUser(viewState.getUser());        Object object = viewState.getMetaObject().getObject();        viewState.setComponent(RenderKit.getInstance().render(context, object));        viewState.setContext(context);        return viewState.getComponent();    }