Friday, July 27, 2012

ADF 11G : getViewObject

    public ViewObject findViewObject(String amDef, String config,
                                     String viewname) {
        ApplicationModule am = null;
        ViewObject vo = null;
        try {
            am = Configuration.createRootApplicationModule(amDef, config);
            vo = am.findViewObject(viewname);
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            return vo;
        }
    }