Tapestry
  1. Tapestry
  2. TAPESTRY-1295

Event handling methods that have too many parameters for the event context should be silently skipped

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0.3
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      It might be nice to be able to have multiple onActivate( ) methods on a page, each handling a different number of context elements (including none).

      Howard's comment on the mailing list (http://www.nabble.com/T5%3A-onActivate-error-handling--tf3281698.html):

      "I'm thinking the change will be: a method will be invoked if the
      context has at least as many values as the method has parameters, and
      will silently skip those that request too many."

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12567756 ] jira [ 12590884 ]
        Mark Thomas made changes -
        Workflow jira [ 12398179 ] Default workflow, editable Closed status [ 12567756 ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 5.0.3 [ 12312338 ]
        Howard M. Lewis Ship made changes -
        Fix Version/s 5.0 [ 12312018 ]
        Summary More leniency needed in onActivate( ) method matching Event handling methods that have too many parameters for the event context should be silently skipped
        Component/s tapestry-core [ 12311285 ]
        Priority Minor [ 4 ] Major [ 3 ]
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Daniel Gredler created issue -

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Daniel Gredler
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development