[
https://issues.apache.org/jira/browse/TAPESTRY-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494093
]
Howard M. Lewis Ship commented on TAPESTRY-1445:
------------------------------------------------
This is likely a class-loader issue. What code is adding the TabControl to the
Environment? If that code is not located INSIDE A COMPONENT, it will be using
the wrong version of the TabControl class. Sorry, leaky abstractions.
The best approach here is to define an interface, well outside of the component
package, and have the component implement the interface.
> @Environmental doesn't work
> ---------------------------
>
> Key: TAPESTRY-1445
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1445
> Project: Tapestry
> Issue Type: Bug
> Components: Annotations
> Affects Versions: 5.0.3
> Reporter: Maciej Krasuski
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]