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

Extend property expression language to include named functions

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.4
    • Fix Version/s: None
    • Component/s: 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

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

              Dates

              • Created:
                Updated: