Package wt.taglib.util
Class LocaleTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
wt.taglib.util.LocaleTag
- All Implemented Interfaces:
Serializable,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
public class LocaleTag
extends javax.servlet.jsp.tagext.TagSupport
JSP LocaleTag returns the most appropriate Windchill supported Locale using SessionHelper. If no matching locale is
found, a locale will be created based on the configured Windchill server locale. For example, if the Windchill Server
is German, and the browser language list does not have a supported locale, then a German locale will be returned.
Example:
For English-US:
For French-Canadian:
For German:
Supported API: true
Extendable: false
Example:
<%@ taglib uri="http://www.windchill.com/taglib/util" prefix="util" %>
<img src="title_<util:locale>.gif">For English-US:
<img src="title_en_US.gif">For French-Canadian:
<img src="title_fr.gif">For German:
<img src="title_de.gif">| Tag Attributes | ||
language</code |
optional | Set language code for desired locale, which will either be the empty string or a lowercase ISO 639 code. In the
absence of this argument, the Accept-Language header will be used in the retrieval of an acceptible locale. |
country</code |
optional | Set the country/region code for desired locale, which will either be the empty string or an uppercase ISO 3166
2-letter code. |
variant</code |
optional | Set the variant code for desired locale. |
Supported API: true
Extendable: false
- Since:
- Windchill R6.0
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Method Summary
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue