Friday, March 15, 2013

To Aaccess Resource Bundle in Bean


    public String getTextProp(String propKey){
        ResourceBundle resourceBundle =   BundleFactory.getBundle("com.hb.view.ViewControllerBundle");
        String propName =null;
        if(resourceBundle != null)
        {
                   propName = resourceBundle.getString(propKey);
        }
        return propName ;
    }

Source: http://learn-adf.blogspot.in/2012/03/access-resource-bundle-in-bean.html
Related Posts Plugin for WordPress, Blogger...