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

@Environmental doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 5.0.3
    • None
    • Annotations
    • None

    Description

      After environment.push(TabControl.class, this) retrieval of pushed value by @Environmental field gives strange exception:

      No object of type com.mkr.app.components.TabControl is available from the Environment. Available types are com.mkr.app.components.TabControl, org.apache.tapestry.MarkupWriter, org.apache.tapestry.PageRenderSupport, org.apache.tapestry.ValidationDecorator, org.apache.tapestry.dom.Document, org.apache.tapestry.internal.services.DocumentScriptBuilder, org.apache.tapestry.services.Heartbeat.

      getting Environment and retrieval by environment.peekRequired(TabControl.class) works fine.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            mkrasuski Maciej Krasuski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: