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. errorAfterWrongPropertyKeySelection.png
          7 kB
          Vlado Pakan
        2. wrongPropertykeySelection.png
          30 kB
          Vlado Pakan
        3. encoded.png
          170 kB
          Denis Maliarevich
        4. nothingSelected.png
          456 kB
          Denis Maliarevich
        5. textSelected.png
          46 kB
          Denis Maliarevich
        6. JBIDE-9203 - text selected.png
          46 kB
          Denis Maliarevich
        7. JBIDE-9203 - nothing selected.png
          456 kB
          Denis Maliarevich
        8. externalizestringdialog.png
          87 kB
          Vlado Pakan
        9. externalizestringresult.png
          18 kB
          Vlado Pakan
        10. propertiesfile.png
          7 kB
          Vlado Pakan

            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: