FacesContext.getCurrentInstance()。getExternalContext()。getContextName()在WildFly 10.0.0中返回null

时间:2016-10-25 02:18:47

标签: jsf wildfly-10 facescontext

我试图通过函数

获取我的观点的相对地址
FacesContext.getCurrentInstance().getExternalContext().getContextName()

它在Payara 4.1中工作正常,但是,Wildfly 10.0.0中的相同代码返回null。 有谁知道Wildfly是否有与此相关的问题?

0 个答案:

没有答案