Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-147

Localization: Messages should be overwiteable by Container (.i.e. users) of the component

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 5.0.15
    • None
    • None

    Description

      Currently messages are only searched in the component and its subclasses catalogs.
      This means only the component provider suppies messages.

      Often a User of a componet ( ie. the container ) wants to override the messages.
      In a special case the container is the page which should have means to change all messages.

      I propose a path-like syntax to specify thew hierarchy.(means all messages are reachable if the container hierarchy is documented)
      I.e:
      page.properties
      -------------------
      firstContainerId.innerContainerId.name= overwriten message

      In the Message search for a component it the following search would appear:
      look in immediate container
      ...
      look in the moust outer container (page)
      the look upo in the componet and its subclasses.

      If a message is found stop the search and take the message.

      Attachments

        Issue Links

          Activity

            People

              mlusetti Massimo Lusetti
              fritz.pro Fritz Pröbstle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: