Examples of BundleSupport


Examples of org.apache.taglibs.standard.tag.common.fmt.BundleSupport

    public ResourceBundle getCommonResourceBundleForJspPage() {
        Tag t = findAncestorWithClass(this, BundleSupport.class);
        LocalizationContext localizationContext;
        if (t != null) {
            // use resource bundle from parent <bundle> tag
            BundleSupport parent = (BundleSupport) t;
            localizationContext = parent.getLocalizationContext();

      else {
            localizationContext = BundleSupport.getLocalizationContext(pageContext);
        }
        return localizationContext.getResourceBundle();
View Full Code Here

Examples of org.apache.taglibs.standard.tag.common.fmt.BundleSupport

        // jakarta jstl implementation, there is no other way to get the bundle from the parent fmt:bundle tag
        Tag bundleTag = TagSupport.findAncestorWithClass(tag, BundleSupport.class);
        if (bundleTag != null)
        {
            BundleSupport parent = (BundleSupport) bundleTag;
            if (key != null)
            {
                String prefix = parent.getPrefix();
                if (prefix != null)
                {
                    key = prefix + key;
                }
            }
            bundle = parent.getLocalizationContext().getResourceBundle();
        }

        // resin jstl implementation, more versatile (we don't need to look up resin classes)
        if (bundle == null)
        {
View Full Code Here

Examples of org.apache.taglibs.standard.tag.common.fmt.BundleSupport

        // jakarta jstl implementation, there is no other way to get the bundle from the parent fmt:bundle tag
        Tag bundleTag = TagSupport.findAncestorWithClass(tag, BundleSupport.class);
        if (bundleTag != null)
        {
            BundleSupport parent = (BundleSupport) bundleTag;
            if (key != null)
            {
                String prefix = parent.getPrefix();
                if (prefix != null)
                {
                    key = prefix + key;
                }
            }
            bundle = parent.getLocalizationContext().getResourceBundle();
        }

        // resin jstl implementation, more versatile (we don't need to look up resin classes)
        if (bundle == null)
        {
View Full Code Here

Examples of org.apache.taglibs.standard.tag.common.fmt.BundleSupport

    public ResourceBundle getCommonResourceBundleForJspPage() {
        Tag t = findAncestorWithClass(this, BundleSupport.class);
        LocalizationContext localizationContext;
        if (t != null) {
            // use resource bundle from parent <bundle> tag
            BundleSupport parent = (BundleSupport) t;
            localizationContext = parent.getLocalizationContext();

      else {
            localizationContext = BundleSupport.getLocalizationContext(pageContext);
        }
        return localizationContext.getResourceBundle();
View Full Code Here

Examples of org.apache.taglibs.standard.tag.common.fmt.BundleSupport

        // jakarta jstl implementation, there is no other way to get the bundle from the parent fmt:bundle tag
        Tag bundleTag = TagSupport.findAncestorWithClass(tag, BundleSupport.class);
        if (bundleTag != null)
        {
            BundleSupport parent = (BundleSupport) bundleTag;
            if (key != null)
            {
                String prefix = parent.getPrefix();
                if (prefix != null)
                {
                    key = prefix + key;
                }
            }
            bundle = parent.getLocalizationContext().getResourceBundle();
        }

        // resin jstl implementation, more versatile (we don't need to look up resin classes)
        if (bundle == null)
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.