protected void outputScriptletImpl(
FacesContext context,
RenderingContext arc) throws IOException
{
ResponseWriter writer = context.getResponseWriter();
LocaleContext lc = arc.getLocaleContext();
writer.startElement("script", null);
XhtmlRenderer.renderScriptDeferAttribute(context, arc);
// Bug #3426092:
// Render the type="text/javascript" attribute in accessibility mode
XhtmlRenderer.renderScriptTypeAttribute(context, arc);
// write out the i18n Locale as a js variable
writer.writeText("var _locale='", null);
writer.writeText(lc.getFormattingIANALocaleString(), null);
writer.writeText("';", null);
// write out the translation Locale as a js variable
writer.writeText("var _tLocale='", null);
writer.writeText(lc.getTranslationIANALocaleString(), null);
writer.writeText("';", null);
char groupingSeparator = lc.getGroupingSeparator();
if (groupingSeparator != 0)
{
writer.writeText("var _groupingSep='", null);
writer.writeText(XhtmlUtils.escapeJS(
String.valueOf(groupingSeparator)),
null);
writer.writeText("';", null);
}
char decimalSeparator = lc.getDecimalSeparator();
if (decimalSeparator != 0)
{
writer.writeText("var _decimalSep='", null);
writer.writeText(XhtmlUtils.escapeJS(