public void setInitialContext(InitialRenderContext context) { super.setInitialContext(context); Locale outputLocale = (Locale) context.get(RenderContext.OUTPUT_LOCALE); String outputName = (String) context .get(RenderContext.OUTPUT_BUNDLE_NAME); ResourceBundle outputMessages = ResourceBundle.getBundle(outputName, outputLocale); start = outputMessages.getString(getLocaleKey() + ".start"); //$NON-NLS-1$ end = outputMessages.getString(getLocaleKey() + ".end"); //$NON-NLS-1$ }
public void setInitialContext(InitialRenderContext context) { super.setInitialContext(context); Locale outputLocale = (Locale) context.get(RenderContext.OUTPUT_LOCALE); String outputName = (String) context .get(RenderContext.OUTPUT_BUNDLE_NAME); ResourceBundle outputMessages = ResourceBundle.getBundle(outputName, outputLocale); start = outputMessages.getString(getLocaleKey() + ".start"); //$NON-NLS-1$ end = outputMessages.getString(getLocaleKey() + ".end"); //$NON-NLS-1$ }
public void setInitialContext(InitialRenderContext context) { super.setInitialContext(context); Locale languageLocale = (Locale) context .get(RenderContext.LANGUAGE_LOCALE); String languageName = (String) context .get(RenderContext.LANGUAGE_BUNDLE_NAME); ResourceBundle messages = ResourceBundle.getBundle(languageName, languageLocale); Locale inputLocale = (Locale) context.get(RenderContext.INPUT_LOCALE); String inputName = (String) context .get(RenderContext.INPUT_BUNDLE_NAME); ResourceBundle inputMessages = ResourceBundle.getBundle(inputName, inputLocale); name = inputMessages.getString(getLocaleKey() + ".name"); try { description = messages.getString(getLocaleKey() + ".description"); } catch (Exception e) { log.warn("Cannot read description from properties " + inputName + " for " + getLocaleKey()); } } }
public void setInitialContext(InitialRenderContext context) { super.setInitialContext(context); Locale languageLocale = (Locale) context .get(RenderContext.LANGUAGE_LOCALE); String languageName = (String) context .get(RenderContext.LANGUAGE_BUNDLE_NAME); ResourceBundle messages = ResourceBundle.getBundle(languageName, languageLocale); Locale inputLocale = (Locale) context.get(RenderContext.INPUT_LOCALE); String inputName = (String) context .get(RenderContext.INPUT_BUNDLE_NAME); ResourceBundle inputMessages = ResourceBundle.getBundle(inputName, inputLocale); name = inputMessages.getString(getLocaleKey() + ".name"); try { description = messages.getString(getLocaleKey() + ".description"); } catch (Exception e) { log.warn("Cannot read description from properties " + inputName + " for " + getLocaleKey()); } } }
public void setInitialContext(InitialRenderContext context) { super.setInitialContext(context); Locale languageLocale = (Locale) context .get(RenderContext.LANGUAGE_LOCALE); String languageName = (String) context .get(RenderContext.LANGUAGE_BUNDLE_NAME); ResourceBundle messages = ResourceBundle.getBundle(languageName, languageLocale); Locale inputLocale = (Locale) context.get(RenderContext.INPUT_LOCALE); String inputName = (String) context .get(RenderContext.INPUT_BUNDLE_NAME); ResourceBundle inputMessages = ResourceBundle.getBundle(inputName, inputLocale); name = inputMessages.getString(getLocaleKey() + ".name"); try { description = messages.getString(getLocaleKey() + ".description"); } catch (Exception e) { log.warn("Cannot read description from properties " + inputName + " for " + getLocaleKey()); } } }
public void setInitialContext(InitialRenderContext context) { super.setInitialContext(context); Locale languageLocale = (Locale) context .get(RenderContext.LANGUAGE_LOCALE); String languageName = (String) context .get(RenderContext.LANGUAGE_BUNDLE_NAME); ResourceBundle messages = ResourceBundle.getBundle(languageName, languageLocale); Locale inputLocale = (Locale) context.get(RenderContext.INPUT_LOCALE); String inputName = (String) context .get(RenderContext.INPUT_BUNDLE_NAME); ResourceBundle inputMessages = ResourceBundle.getBundle(inputName, inputLocale); name = inputMessages.getString(getLocaleKey() + ".name"); try { description = messages.getString(getLocaleKey() + ".description"); } catch (Exception e) { log.warn("Cannot read description from properties " + inputName + " for " + getLocaleKey()); } } }
.get(RenderContext.DEFAULT_FORMATTER)); if (null == formatter)
.get(RenderContext.DEFAULT_FORMATTER)); if (null == formatter)