Class LoadBundleTag

  • All Implemented Interfaces:
    Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

    @JSFJspTag(name="f:loadBundle",
               bodyContent="empty")
    public class LoadBundleTag
    extends javax.servlet.jsp.tagext.TagSupport
    Loads a resource bundle and saves it as a variable in the request scope.

    Unless otherwise specified, all attributes accept static values or EL expressions.

    TODO: We should find a way to save loaded bundles in the state, because otherwise on the next request the bundle map will not be present before the render phase and value bindings that reference to the bundle will always log annoying "Variable 'xxx' could not be resolved" error messages.

    Version:
    $Revision$ $Date$
    Author:
    Manfred Geiler (latest modification by $Author$)
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface javax.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Constructor Summary

      Constructors 
      Constructor Description
      LoadBundleTag()  
    • Constructor Detail

      • LoadBundleTag

        public LoadBundleTag()
    • Method Detail

      • setBasename

        @JSFJspAttribute(className="javax.el.ValueExpression",
                         deferredValueType="java.lang.String")
        public void setBasename​(javax.el.ValueExpression basename)
        The base name of the resource bundle.
      • setVar

        @JSFJspAttribute(required=true)
        public void setVar​(String var)
        The name of the variable in request scope that the resources are saved to. This must be a static value.
      • doStartTag

        public int doStartTag()
                       throws javax.servlet.jsp.JspException
        Specified by:
        doStartTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class javax.servlet.jsp.tagext.TagSupport
        Throws:
        javax.servlet.jsp.JspException