Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1932

Extend PropertyModel to allow access to annotations associated with the property

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.0.11
    • Component/s: Framework
    • Labels:
      None

      Description

      Oftentimes I have to work with beans that I do not have the source for. These beans come out of a library that is shared amongst other apps or out of a third party library. As such, annotating fields with the "Validate" annotation or the proposed "PropertyType" annotation (see TAPESTRY-1931) are not possible.

      What would be great is if the PropertyModel exposed these customizations via API additions. Then, during model customization, one could do something similar to the following:

      model.add("some_text_property").addValidation("required")

      Or:

      model.add("some_text_property").setType("longtext")

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              nirvdrum Kevin Menard
            • Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: