Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-928

DojoUtils.getAttributeMap fails for subclassed Dojo Components

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.5-SNAPSHOT
    • 1.1.5
    • None
    • None

    Description

      When using DojoUtils.renderWidgetInitializationCode() with a String Array as arguments parameter introspection get's used to find the getters for the given Strings. When subclassing a dojo based widget this mechanisms fails with a NoSuchMethodException.

      The introspection happens in DojoUtils.getAttributeMap() and uses Class.getDeclaredMethod() instead of Class.getMethod() which won't find the inherited getters. Changing this makes the mechanism working with subclassed components too.

      Attachments

        Activity

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

          People

            werpu Werner Punz
            sschuster Stefan Schuster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment