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

Extend property expression language to include named functions

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 5.4
    • None
    • tapestry-core

    Description

      It would be nice to by able to define, as a service contribution, a function that could be referenced inside a property expression. This could be used for frequent operations such as sorting a collection, or defaulting null values.

      It's a bit tricky, since the property expression language is generics aware; the function provided (possibly: a static method on a class) would also need to support generics.

      Currently, this can be done in Java code, but it either leads to heavy base classes (providing utility methods) or some ugly repetition.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: