@Override public Locale getLocale() { return getFacesContext().getExternalContext().getRequestLocale(); }
@Override public Locale getLocale() { return getFacesContext().getExternalContext().getRequestLocale(); }
@Override public Locale getRequestLocale() { return wrapped.getRequestLocale(); }
/** * {@inheritDoc} */ public Locale getRequestLocale() { return wrapped.getRequestLocale(); }
/** * {@inheritDoc} */ public Locale getRequestLocale() { return wrapped.getRequestLocale(); }
/** * {@inheritDoc} */ public Locale getRequestLocale() { return wrapped.getRequestLocale(); }
public Locale getRequestLocale() { return externalContext.getRequestLocale(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getRequestLocale} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#getRequestLocale() */ @Override public Locale getRequestLocale() { return getWrapped().getRequestLocale(); }
@Override public Locale getRequestLocale() { return getWrapped().getRequestLocale(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getRequestLocale} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#getRequestLocale() */ @Override public Locale getRequestLocale() { return getWrapped().getRequestLocale(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getRequestLocale} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#getRequestLocale() */ public Locale getRequestLocale() { return getWrapped().getRequestLocale(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getRequestLocale} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#getRequestLocale() */ @Override public Locale getRequestLocale() { return getWrapped().getRequestLocale(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getRequestLocale} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#getRequestLocale() */ @Override public Locale getRequestLocale() { return getWrapped().getRequestLocale(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getRequestLocale} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#getRequestLocale() */ @Override public Locale getRequestLocale() { return getWrapped().getRequestLocale(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getRequestLocale} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#getRequestLocale() */ @Override public Locale getRequestLocale() { return getWrapped().getRequestLocale(); }
@Override public Locale getLocale() { return getFacesContext().getExternalContext().getRequestLocale(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getRequestLocale} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#getRequestLocale() */ @Override public Locale getRequestLocale() { return getWrapped().getRequestLocale(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getRequestLocale} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#getRequestLocale() */ @Override public Locale getRequestLocale() { return getWrapped().getRequestLocale(); }
/** * Returns the most appropriate {@link Locale} for the given faces context. * @param context the faces context * @return a {@link Locale} obtained from the context */ public static Locale getLocale(FacesContext context) { Assert.notNull(context, "FacesContext must not be null"); if (context.getViewRoot() != null && context.getViewRoot().getLocale() != null) { return context.getViewRoot().getLocale(); } return context.getExternalContext().getRequestLocale(); }
/** * Init method. */ @Create public void init() { PortletContext portletContext = (PortletContext) FacesContext.getCurrentInstance().getExternalContext().getContext(); this.internationalizationService = (IInternationalizationService) portletContext.getAttribute(AdministrationConstants.INTERNATIONALIZATION_SERVICE_NAME); this.locale = FacesContext.getCurrentInstance().getExternalContext().getRequestLocale(); }