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

Allow directly accessing I18N keys from Tiles defintions

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.31, 2.5.5
    • Component/s: Plugin - Tiles
    • Labels:
      None

      Description

      It'd be better to allow directly fetching I18N keys from Struts properties instead of using multiple tiles.xml definitions. The latest version of Tiles supports expression languages so it can be possible to add support for Struts' internals.

      <definition name="home" extends="logged-in">
        <put-attribute name="title" expression="S2:home.title"/>
        <put-attribute name="body" value="/WEB-INF/tiles/home.jsp"/>
      </definition>
      

      and home.title should be first evaluated as a key in resource bundle and then as a value from ValueStack.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: