你可以从ViewRoot中得到.如下:
FacesContext fc = FacesContext.getCurrentInstance(); |
FacesContext fc = FacesContext.getCurrentInstance(); |