@Override public ResourceBundle getResourceBundle(FacesContext ctx, String name) { return delegate().getResourceBundle(ctx, name); }
@Override public ResourceBundle getResourceBundle(FacesContext fc, String name) { return application.getResourceBundle(fc, name); }
/** * {@inheritDoc} */ @Override public ResourceBundle getResourceBundle(FacesContext ctx, String name) { return wrapped.getResourceBundle(ctx, name); }
/** * {@inheritDoc} */ @Override public ResourceBundle getResourceBundle(FacesContext ctx, String name) { return wrapped.getResourceBundle(ctx, name); }
/** * @see Faces#getResourceBundle(String) */ public static ResourceBundle getResourceBundle(FacesContext context, String var) { return context.getApplication().getResourceBundle(context, var); }
/** * @see Faces#getResourceBundle(String) */ public static ResourceBundle getResourceBundle(FacesContext context, String var) { return context.getApplication().getResourceBundle(context, var); }
/** * Gets the message from the message file. * * @param key * the key that identifies the message. * @return the message. */ public static String getMessage(String key) { FacesContext facesContext = FacesContext.getCurrentInstance(); String msg = facesContext.getApplication().getResourceBundle(facesContext, "translation").getString(key); return msg; }
/** * <p class="changed_added_2_0">The default behavior of this method * is to call {@link Application#getResourceBundle(javax.faces.context.FacesContext, String)} on the * wrapped {@link Application} object.</p> */ @Override public ResourceBundle getResourceBundle(FacesContext ctx, String name) { return getWrapped().getResourceBundle(ctx, name); }
/** * <p class="changed_added_2_0">The default behavior of this method * is to call {@link Application#getResourceBundle(javax.faces.context.FacesContext, String)} on the * wrapped {@link Application} object.</p> */ @Override public ResourceBundle getResourceBundle(FacesContext ctx, String name) { return getWrapped().getResourceBundle(ctx, name); }
/** * <p class="changed_added_2_0">The default behavior of this method * is to call {@link Application#getResourceBundle(javax.faces.context.FacesContext, String)} on the * wrapped {@link Application} object.</p> */ @Override public ResourceBundle getResourceBundle(FacesContext ctx, String name) { return getWrapped().getResourceBundle(ctx, name); }
@Override public ResourceBundle getResourceBundle(FacesContext ctx, String name) { return getWrapped().getResourceBundle(ctx, name); }
/** * <p class="changed_added_2_0">The default behavior of this method * is to call {@link Application#getResourceBundle(javax.faces.context.FacesContext, String)} on the * wrapped {@link Application} object.</p> */ @Override public ResourceBundle getResourceBundle(FacesContext ctx, String name) { return getWrapped().getResourceBundle(ctx, name); }
private static ResourceBundle getResourceBundle(final ELContext context, final String property) { final FacesContext facesContext = facesContext(context); if (facesContext != null) { final Application application = facesContext.getApplication(); return application.getResourceBundle(facesContext, property); } return null; }
/** * <p class="changed_added_2_0"> * The default behavior of this method is to call * {@link Application#getResourceBundle(javax.faces.context.FacesContext, String)} on the * wrapped {@link Application} object. * </p> */ @Override public ResourceBundle getResourceBundle(FacesContext ctx, String name) { return getWrapped().getResourceBundle(ctx, name); }
public ResourceBundle getResourceBundle(FacesContext facesContext, String s) throws FacesException, NullPointerException { weaveDelegate(); return _delegate.getResourceBundle(facesContext, s); }
@Override public ResourceBundle getResourceBundle(FacesContext ctx, String name) { return delegate().getResourceBundle(ctx, name); }
private ResourceBundle getResourceBundle(ELContext context, String property) { FacesContext facesContext = facesContext(context); if (facesContext != null) { Application application = facesContext.getApplication(); return application.getResourceBundle(facesContext, property); } return null; }
private static ResourceBundle getResourceBundle(final ELContext context, final String property) { final FacesContext facesContext = facesContext(context); if (facesContext != null) { final Application application = facesContext.getApplication(); return application.getResourceBundle(facesContext, property); } return null; }
public static void addI18NMessage(String clientId, FacesMessage.Severity severity, String bundleVar, String messageId) { final FacesContext context = FacesContext.getCurrentInstance(); final ResourceBundle bundle = context.getApplication().getResourceBundle(context, bundleVar); final String summary = bundle.getString(messageId); final String detailsKey = messageId + "_detail"; final String details = bundle.containsKey(detailsKey) ? bundle.getString(detailsKey) : null; context.addMessage(clientId, new FacesMessage(severity, summary, details)); }
@PostConstruct protected void initialize() { FacesContext context = FacesContext.getCurrentInstance(); this.bundle = context.getApplication() .getResourceBundle(context, "msg"); String key = getKey(); PropertyCategory category = getCategory(); if (key != null && category != null) { this.descriptor = descriptorFactory.getDescriptor(category, key); } }