Examples of ExtFacesContext


Examples of com.liferay.faces.util.context.ExtFacesContext

   * @param   arg1       The first argument, assuming that the messageId has a {0} token.
   *
   * @return  The internationalized message.
   */
  public String replace(String messageId, String arg1) {
    ExtFacesContext extFacesContext = ExtFacesContext.getInstance();
    Locale locale = extFacesContext.getLocale();

    return extFacesContext.getMessage(locale, messageId, arg1);
  }
View Full Code Here

Examples of com.liferay.faces.util.context.ExtFacesContext

   * @param   arg2       The second argument, assuming that the messageId has a {1} token.
   *
   * @return  The internationalized message.
   */
  public String replace(String messageId, String arg1, String arg2) {
    ExtFacesContext extFacesContext = ExtFacesContext.getInstance();
    Locale locale = extFacesContext.getLocale();

    return extFacesContext.getMessage(locale, messageId, arg1, arg2);
  }
View Full Code Here

Examples of com.liferay.faces.util.context.ExtFacesContext

   * @param   arg3       The third argument, assuming that the messageId has a {2} token.
   *
   * @return  The internationalized message.
   */
  public String replace(String messageId, String arg1, String arg2, String arg3) {
    ExtFacesContext extFacesContext = ExtFacesContext.getInstance();
    Locale locale = extFacesContext.getLocale();

    return extFacesContext.getMessage(locale, messageId, arg1, arg2, arg3);
  }
View Full Code Here

Examples of com.liferay.faces.util.context.ExtFacesContext

   * @param   arg4       The fourth argument, assuming that the messageId has a {3} token.
   *
   * @return  The internationalized message.
   */
  public String replace(String messageId, String arg1, String arg2, String arg3, String arg4) {
    ExtFacesContext extFacesContext = ExtFacesContext.getInstance();
    Locale locale = extFacesContext.getLocale();

    return extFacesContext.getMessage(locale, messageId, arg1, arg2, arg3, arg4);
  }
View Full Code Here

Examples of com.liferay.faces.util.context.ExtFacesContext

    String message = null;

    if (key != null) {

      ExtFacesContext extFacesContext = ExtFacesContext.getInstance();
      Locale locale = extFacesContext.getLocale();

      if (cacheEnabled) {

        String messageKey = key;

        if (locale != null) {
          messageKey = locale.toString().concat(key);
        }

        message = cache.get(messageKey);

        if (message == null) {
          message = extFacesContext.getMessage(locale, key);

          if (message != null) {
            cache.put(messageKey, message);
          }
        }
      }
      else {
        message = extFacesContext.getMessage(locale, key);
      }
    }

    return message;
  }
View Full Code Here

Examples of com.liferay.faces.util.context.ExtFacesContext

  public static DataModel<?> findDataModel(String forClientId) {

    DataModel<?> dataModel = null;

    if (forClientId != null) {
      ExtFacesContext extFacesContext = ExtFacesContext.getInstance();
      UIComponent forUIComponent = extFacesContext.matchComponentInViewRoot(forClientId);

      if (forUIComponent != null) {

        if (forUIComponent instanceof UIData) {
          UIData uiData = (UIData) forUIComponent;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.