Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-394

Default for listener parameter of DirectLink, etc.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.0
    • 4.1.3
    • Framework
    • None

    Description

      The following is a common convention in Tapestry:

      <p>
      <a href="#" jwcid="clear@DirectLink" listener="listener:doClear">clear counter</a>
      </p>

      Looking at this, it seems to me that the default for listener could be calculated; that is, capitalize the component id to "Clear" and prefix with "do".

      I.e.

      getContainer().getListeners().getListener("do" + capitalize(getId()));

      Of course, for auto-generated ids, this would be a failure (either no listener found, or something more explicit).

      Attachments

        Activity

          People

            dotteben Ben Dotte
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: