Get Request and Session Parameters and Attributes from JSF pages

前端 未结 8 1759
轮回少年
轮回少年 2020-11-29 19:23

I\'m using JSF with facelets and I need to get the request and session parameters inside the JSF page. In JSP pages I got this parameter like that: \"${requestScope.pa

8条回答
  •  無奈伤痛
    2020-11-29 19:45

    Assuming that you already put your object as attribute on the session map of the current instance of the FacesContext from your managed-bean, you can get it from the JSF page by :

    
    

    If your object has a property, get it by:

    
    

提交回复
热议问题