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

enable creation of custom "onException" event handler

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Abandoned
    • 5.0.15
    • None
    • None
    • None

    Description

      make it possible to create custom "onException" event handler that are fired when custom Exceptions are thrown.

      i have the use case saying, that when an optimistic lock exception is thrown the same page with the newly loaded entity and an error message has to be displayed. Although it is possible to use the "onException" event it would be much nicer to have a "onExceptionFromOptimisticLocking" exception where the developer can put the exception handling into this specific method. In the near future we will have multiple other exceptions that need to be handled in a similar way.

      i prefer specific event handler to a bunch of instanceof statements

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            kristian Kristian Marinkovic
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: