I'm trying to get the relative address of my view via the function
FacesContext.getCurrentInstance().getExternalContext().getContextName()
It works fine in Payara 4.1, however, the same code in Wildfly 10.0.0 returns null. Does anyone knows if Wildfly have some problem related to this?