01-30-2007 08:15 AM
01-30-2007 09:47 AM
01-31-2007 03:21 AM
01-31-2007 04:03 PM
02-01-2007 02:57 AM
02-01-2007 03:44 AM
02-01-2007 06:19 AM
02-01-2007 06:38 AM
Index: projects/web-client/source/web/index.jsp
===================================================================
— projects/web-client/source/web/index.jsp (revision 4992)
+++ projects/web-client/source/web/index.jsp (working copy)
@@ -15,10 +15,12 @@
License.
–%>
+<%@ page import="javax.faces.context.FacesContext" %>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ page import="org.alfresco.service.cmr.security.PermissionService" %>
<%@ page import="org.alfresco.config.ConfigService" %>
<%@ page import="org.alfresco.web.app.servlet.AuthenticationHelper" %>
+<%@ page import="org.alfresco.web.app.servlet.FacesHelper" %>
<%@ page import="org.alfresco.web.bean.NavigationBean" %>
<%@ page import="org.alfresco.web.bean.repository.User" %>
<%@ page import="org.alfresco.web.bean.repository.PreferencesService" %>
@@ -35,7 +37,9 @@
User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);
if (user != null && (user.getUserName().equals(PermissionService.GUEST_AUTHORITY) == false))
{
- String preference = (String)PreferencesService.getPreferences(user).getValue("start-location");
+ // ensure construction of the FacesContext before attemping a service call
+ FacesContext fc = FacesHelper.getFacesContext(request, response, application);
+ String preference = (String)PreferencesService.getPreferences(fc).getValue("start-location");
if (preference != null)
{
location = preference;
02-01-2007 07:54 AM
02-01-2007 08:13 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.