I am getting the below messages when my JSF page gets rendered. The page is rendered correctly however in the Console the message below repeats itself numerous times...
INFO: ERROR: Unable to get Faces Context for session variable: localeBean
11:54:27,090 INFO [STDOUT] Nov 24, 2009 11:54:27 AM com.web.util.faces.UtilFacesFuncs log INFO: Most likely, you've requested a Faces object from a NON-Faces (i.e. Servlet) context.
In my JSF I am usign localebean as follows:
<f:view locale="#{localeBean.userLocaleLoggedIn}">
In the faces-config file I have it defined as below:
<managed-bean>
<description>Locale Bean</description>
<managed-bean-name>localeBean</managed-bean-name>
<managed-bean-class>com.mg.faces.LocaleBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
In my class LocaleBean there is a method getUserLocaleLoggedIn() which is the code that gets executed when the JSF page executes:
<f:view locale="#{localeBean.userLocaleLoggedIn}">
On debugging my jsp I can see that method being called and everyhting is fine, I debug my jsp all the way thru till it creates the footer, just when it is rendering to the browser these errors are thrown about 20 + times repeatedly. It only happens on tihs jsp as it is a new one I have added. I tried comparing with existing jso I cannot see anything different, Does anyone know what I shud be looking out for?
Any help much appreciated.
Thanks.
Regards