Tapestry
  1. Tapestry
  2. TAPESTRY-394

Default for listener parameter of DirectLink, etc.

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1.3
    • Component/s: Framework
    • Labels:
      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).

        Activity

        Howard M. Lewis Ship created issue -
        Jesse Kuhnert made changes -
        Field Original Value New Value
        Fix Version/s 4.1.2 [ 12312202 ]
        Jesse Kuhnert made changes -
        Fix Version/s 4.1.3 [ 12312516 ]
        Fix Version/s 4.1.2 [ 12312202 ]
        Ben Dotte made changes -
        Assignee Ben Dotte [ dotteben ]
        Ben Dotte made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12322118 ] Default workflow, editable Closed status [ 12569056 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12569056 ] jira [ 12592063 ]

          People

          • Assignee:
            Ben Dotte
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development