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

Asset injection makes assets appear as null inside finishLoad()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0
    • Component/s: Framework
    • Labels:
      None

      Description

      The enhanced code for each asset is to extend the public finishLoad() method to get the asset and store it in an instance variable.

      The problem is that user-written finishLoad() gets invoked first.

      So if you try to access an asset via its abstract accessor method, it will return null then (but a real value, later).

      A better solution is to NOT store the asset in an instance variable, but just have the accessor method turn around and invoke getAsset().

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: