【发布时间】:2011-11-12 16:01:48
【问题描述】:
FacesContext.getCurrentInstance().getExternalContext().getFlash()
我正在尝试使用上面的代码,似乎 getFlash() 在 Myfaces 的 JSF2 实现中不存在。如何访问它。
上面的行给了我这个错误
The method getFlash() is undefined for the type Object
这是我的导入,没有问题
import javax.faces.context.FacesContext;
import javax.faces.context.Flash;
【问题讨论】:
-
我会喜欢在 Myface tbh 上调用的 seeFlash() 方法。
-
检查 svn ExternalContext 和 ServletExternalContextImpl。它就在那里。
标签: java jsf-2 myfaces java-ee-5