Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9203

Add support for special and non-ASCII characters to the Externalize Strings Wizard for JSP

XMLWordPrintable

    • Support for special and non-ASCII characters has been added to the JSP Externalize String Wizard. This allows code that is to be externalized to appear in the current code with indentation and contain such characters as line breaks, without causing error.
    • Documented as Feature Request

      1. Create JSF kick start project
      2. Open hello.jsp page
      3. Insert "Plain" text as shown on picture below and choose Externalize selected string toolbar button

      In the Externalize String dialog is set text "Plain" as Property value but together with special characters <EOL>

      4. Choose next>, next>, OK. (Use default values)

      hello.jsp page look like this. <EOL> characters around "Plain" text were removed/replaced with reference to .properties file:

      hello.properties has wrong contnent:

        1. encoded.png
          encoded.png
          170 kB
        2. errorAfterWrongPropertyKeySelection.png
          errorAfterWrongPropertyKeySelection.png
          7 kB
        3. externalizestringdialog.png
          externalizestringdialog.png
          87 kB
        4. externalizestringresult.png
          externalizestringresult.png
          18 kB
        5. JBIDE-9203 - nothing selected.png
          JBIDE-9203 - nothing selected.png
          456 kB
        6. JBIDE-9203 - text selected.png
          JBIDE-9203 - text selected.png
          46 kB
        7. nothingSelected.png
          nothingSelected.png
          456 kB
        8. propertiesfile.png
          propertiesfile.png
          7 kB
        9. textSelected.png
          textSelected.png
          46 kB
        10. wrongPropertykeySelection.png
          wrongPropertykeySelection.png
          30 kB

            dmaliarevich_jira Denis Maliarevich (Inactive)
            vpakan Vlado Pakan (Inactive)
            Isaac Rooskov Isaac Rooskov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: