开发者

Getting FaceletContext from FacesContext in JSF 1.2

开发者 https://www.devze.com 2023-03-24 15:34 出处:网络
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 vie

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

精彩评论

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