Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7641

Use Default if Value is Blank on sling:encode Tag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Scripting JSP Taglib 2.2.6
    • Scripting
    • None

    Description

      According to the description in the TLD, the blank value is:

      "The default value to be used if the value is either null or an empty string." 

      However, the Encode Tag only uses a null check to decide to use the default value. This should instead check if the string is null or empty.

      Attachments

        Activity

          People

            klcodanr Dan Klco
            klcodanr Dan Klco
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: