Package org.apache.myfaces.trinidadinternal.share.util

Examples of org.apache.myfaces.trinidadinternal.share.util.FastMessageFormat


    {
      String requiredMessageDetail =
      ((UIXEditableValue) component).getRequiredMessageDetail();
      if (requiredMessageDetail != null)
      {
        FastMessageFormat format =
        new FastMessageFormat(requiredMessageDetail);
        detail = format.format(params);
      }

    }

    if (detail == null)
View Full Code Here


    String[] parameters = new String[] { summary, detail };
    String pattern = BaseLafRenderer.getTranslatedString(context,
                                                      _GLOBAL_FORMAT_KEY);

    return (new FastMessageFormat(pattern)).format(parameters);
  }
View Full Code Here

    )
  {
    // # for perf bug #1301909, store the format on the RenderingContext
    // per rendering pass. Eventually we want to store it across passes
    // based on Locale...
    FastMessageFormat formatter =
      (FastMessageFormat)context.getProperty(MARLIN_NAMESPACE, pattern);

    if (formatter == null)
    {
      formatter = new FastMessageFormat(pattern);
      context.setProperty(MARLIN_NAMESPACE, pattern, formatter);
    }

    return formatter.format(parameters);
  }
View Full Code Here

    return clientId.replace(':','_');
  }

  public static String getFormattedString(String pattern, String[] parameters)
  {
    FastMessageFormat formatter = new FastMessageFormat(pattern);
    return formatter.format(parameters);
  }
View Full Code Here

      }

      String format = arc.getTranslatedString(formatKey);
      if (format != null)
      {
        FastMessageFormat fmf = new FastMessageFormat(format);
        linkText = fmf.format(srcs);
      }
    }

    _writeCellContents(context, arc, ttrc, hgrid, linkText, disabled, isTop, nextWindowStart);
  }
View Full Code Here

      }

      String format = arc.getTranslatedString(formatKey);
      if (format != null)
      {
        FastMessageFormat fmf = new FastMessageFormat(format);
        linkText = fmf.format(srcs);
      }
    }

    _writeCellContents(context, arc, ttrc, hgrid, linkText, disabled, isTop, nextWindowStart);
  }
View Full Code Here

    return clientId.replace(':','_');
  }

  public static String getFormattedString(String pattern, String[] parameters)
  {
    FastMessageFormat formatter = new FastMessageFormat(pattern);
    return formatter.format(parameters);
  }
View Full Code Here

  static private final class FunctorMap extends AbstractMap<Object, String>
  {
    public FunctorMap(Object key)
    {
      // Assumes check against null above
      _format = new FastMessageFormat(key.toString());
    }
View Full Code Here

    )
  {
    // # for perf bug #1301909, store the format on the RenderingContext
    // per rendering pass. Eventually we want to store it across passes
    // based on Locale...
    FastMessageFormat formatter =
      (FastMessageFormat)context.getProperty(MARLIN_NAMESPACE, pattern);

    if (formatter == null)
    {
      formatter = new FastMessageFormat(pattern);
      context.setProperty(MARLIN_NAMESPACE, pattern, formatter);
    }

    return formatter.format(parameters);
  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidadinternal.share.util.FastMessageFormat

Copyright © 2018 www.massapicom. 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.