Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to access sessionScope from JSF Page in ADF

964155Dec 22 2012 — edited Dec 24 2012
Hi,

I Create Employee backingbean where i can store EmployeeName in sessionScope,

FacesContext facescontext=FacesContext.getCurrentInstance();
ExternalContext econtext=facescontext.getExternalContext();
HttpSession session=(HttpSession)econtext.getSession(true);
session.setAttribute("EmployeeName", cst.getString("P_Ename"));
// register outcome value from DB with "EmployeeName" in SessionScope

I want to access the sessionScope Object to get Value and Displayed into JSF Page
for Example af:InputText in JSF Page displayed EmployeeName.

for this we use expressionLanguage #{sessionScope.EmployeeName} as value of af:InputText in JSF Page, but we dont value.
Can any one please give the correct approch to get Value from sessionscope.

Thanks,
Kumar
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 21 2013
Added on Dec 22 2012
2 comments
1,576 views