Tapestry: Obtained resource by @Inject is NULL

Posted yexianyi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Tapestry: Obtained resource by @Inject is NULL相关的知识,希望对你有一定的参考价值。

Issue:

When you inject some resources by @Inject Annotation in Tapestry Page or other components, you may find that the obtained instance are always NULL.

 

Solution:

Please confirm your @Inject annotation is imported from org.apache.tapestry5.ioc.annotations.Inject, not from javax.inject or other package.

以上是关于Tapestry: Obtained resource by @Inject is NULL的主要内容,如果未能解决你的问题,请参考以下文章

tapestry3笔记--tapestry 初探,《 tapestry in action 》第一章学习笔记

Tapestry 5.4 未找到用于休眠的驱动程序

Tapestry教程----组件类介绍

Tapestry 子窗体中的应用程序异常 - 参数绑定为 null

Tapestry 怎样从数据库中保存的图片显示出来。

Tapestry入门