开发者

Getting FaceletContext from FacesContext in JSF 1.2

How to get FaceletContext from FaceletContex开发者_开发技巧t in JSF 1.2?

The problem is that I am creating a Tab dynamically and I want to include a view inside the newly created Tab. Including a view is supported only by FaceletContext.


Maybe with

 FacesContext.getCurrentInstance().
      getELContext().getContext(FacelectContext.class)

See ELContext#getContext(java.lang.Class)

Returns the context object associated with the given key.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜