Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2064

Order of which hst components are loaded influence the inheritance where this should not be the case

    XMLWordPrintable

Details

    Description

      We ran into what looks like inconsistent behaviour of the HST between
      a component container directly defining a class and template, and a
      component container referencing a component configuration defining the
      exact same class and template.

      Take the following configuration:

      • hst:pages
        – default
        -- main [template: default.main]
          – content [componentclass:org.example.Content, template: default.main.content]
        -- sidebar
        – foo [referencecomponent: hst:pages/default]
        -- main [template: default.main]
          – content [componentclass:org.example.MyComponent, template:mycomponent]
        – bar [referencecomponent: hst:pages/default]
        -- main [template: default.main]
        -- content [referencecomponent: hst:components/mycomponent]
      • hst:components
        -- mycomponent [componentclass:org.example.MyComponent, template:mycomponent]

      One would expect the resulting pages for 'foo' and 'bar' to be exactly
      the same. However, 'foo' results in the expected page (using
      mycomponent), but 'bar' results in the page one would expect for the
      'default' page configuration (using the org.example.Content class and
      default.main.content template).

      Is this a bug?

      Thanks,
      Niels

      Attachments

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: