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

ComponentResources should give access to generic parameters of bound types

Attach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.4, 5.1.0.7
    • 5.4
    • tapestry-core
    • None

    Description

      ComponentResources can tell which type is bound to a given parameter via getBoundType(ParameterName). This is a great feature but only works for non-generic types. If a generic type is bound, it's impossible to access the generic parameters.
      Example:
      A component can bind to a Set of something. getBoundType returns "java.util.Set" for this parameter. So it' not possible to coerce the entries of this set to the target type.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            uklance Lance S
            micw Michael Wyraz
            Votes:
            1 Vote for this issue
            Watchers:
            5 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment