public class LoadBundleTag
extends javax.servlet.jsp.tagext.TagSupport
Tag action that loads the specified ResourceBundle as a Map into
the request scope of the current FacesContext.
The user is discouraged from using multiple dot syntax in their
resource bundle keys. For example, for the bundle loaded under the
var msgs, this key: index.page.title is
discouraged. If your application requires this syntax for resource
bundle keys, they may be referred to in the page with a syntax like
this: #{msgs["index.page.title"]}.
| Constructor and Description |
|---|
LoadBundleTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doStartTag()
Load the
ResourceBundle named by our
basename property. |
void |
release()
Release references to any acquired resources.
|
void |
setBasename(javax.el.ValueExpression basename)
Set the base name of the
ResourceBundle to be
loaded. |
void |
setVar(String var)
Set the name of the attribute in the request scope under which
to store the
ResourceBundle Map. |
public void setBasename(javax.el.ValueExpression basename)
Set the base name of the ResourceBundle to be
loaded.
basename - the ValueExpression which will resolve the basenamepublic void setVar(String var)
Set the name of the attribute in the request scope under which
to store the ResourceBundle Map.
var - the variable name to export the loaded ResourceBundle topublic int doStartTag()
throws javax.servlet.jsp.JspException
Load the ResourceBundle named by our
basename property.
Map implementation and store the Map in
the request attr set of under the key given by our
var property.doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - if a JSP error occurspublic void release()
Release references to any acquired resources.
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportCopyright © 2010–2018 JBoss by Red Hat. All rights reserved.