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

Alerts component should not automatically import the core stack

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      The Alerts component (org.apache.tapestry5.corelib.components.Alerts) @Import's the "core" stack.

      If you want to disable the core stack (which is now included by default, see TAP5-2169) you can disable the auto include of the core stack with the following approach:

      public void contributeMarkupRenderer(OrderedConfiguration<MarkupRendererFilter> configuration) {
      configuration.override("ImportCoreStack", null);
      }

      But if you place the alerts component in your template, the core stack get's again included and the bootstrap css messes up your layout completely.

      The Alerts component is the only component in tapestry-core which has an @Import(stack="core") annotation.

      My suggestion: remove it

      thx

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              felixgonschorek Felix Gonschorek
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: