Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3284

Support for a "Number" jsp tag to compliment the Date tag

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.8
    • Fix Version/s: 2.3.3
    • Component/s: Core Actions
    • Labels:
      None
    • Flags:
      Patch

      Description

      The attached patch brings in support for a "Number" tag, to compliment the "Date" tag, exposing the java.text.NumberFormat class.

      The main purpose of this tag is to render currency amounts, which are typically expressed as a java.util.Currency and a java.math.BigDecimal.

      Currently, you can render currency amounts using a format string, but this presupposes that you preselect a given currency, with a given symbol, and given fraction digits.

      With this tag, you are able to take a UBL XSD, put it through JAXB to produce a set of javabeans, and print currency amounts without being forced to pre-render the amounts in the action class.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lukaszlenart Lukasz Lenart
                Reporter:
                minfrin Graham Leggett
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: