Package org.apache.myfaces.trinidad.util

Examples of org.apache.myfaces.trinidad.util.FastMessageFormat


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

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


      return summary;

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

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

  {

    String[] parameters = new String[] { summary };
    String pattern = arc.getTranslatedString(_MESSAGE_BOX_LIST_FORMAT_KEY);

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

    }
    }
    else
    {
      // format used for combining months and years
      FastMessageFormat titleFormat = _getTitleFormat(rc);

      String monthName = monthNames[monthIndex];
      String yearName = String.valueOf(year);

      String title = titleFormat.format(new String[]{monthName, yearName});

      writer.writeText(title, null);
    }
  }
View Full Code Here

  private FastMessageFormat _getMessageFormat(
    RenderingContext arc,
    String              translationKey)
  {
    FastMessageFormat format =
        new FastMessageFormat(arc.getTranslatedString(translationKey));

    return format;
  }
View Full Code Here

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

    }

    if (detail == null)
View Full Code Here

    }
    }
    else
    {
      // format used for combining months and years
      FastMessageFormat titleFormat = _getTitleFormat(arc);

      String monthName = monthNames[monthIndex];
      String yearName = String.valueOf(year);

      String title = titleFormat.format(new String[]{monthName, yearName});

      writer.writeText(title, null);
    }
  }
View Full Code Here

  private FastMessageFormat _getMessageFormat(
    RenderingContext arc,
    String              translationKey)
  {
    FastMessageFormat format =
        new FastMessageFormat(arc.getTranslatedString(translationKey));

    return format;
  }
View Full Code Here

  {
    // {0} and {1} should be replaced.
    // Param for {2} is null, so remove {2}.
    // The rest is interpreted literally.
    // Expected result: "beef {{3} isn't {} {a} {12a}kosher {"
    FastMessageFormat fmf =
      new FastMessageFormat("{0} {{3} isn't {} {a} {12a}{2}{1} {");
    String[] params = { "beef", "kosher", null };
    String result = fmf.format(params);
    assertEquals(result, "beef {{3} isn't {} {a} {12a}kosher {");
  }
View Full Code Here

    }
    }
    else
    {
      // format used for combining months and years
      FastMessageFormat titleFormat = _getTitleFormat(arc);

      String monthName = monthNames[monthIndex];
      String yearName = String.valueOf(year);

      String title = titleFormat.format(new String[]{monthName, yearName});

      writer.writeText(title, null);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.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.