Hi,

looks like it's an orchestra day, today :-)
I read the other mail from Simon on the frameworkAdapter, where he
suggests to use a filter.

However, I noticed that several filters are already used by orchestra,
like to one to wrap the request
(RequestParameterResponseWrapper)
Why not using a FacesContextFactoryImpl ?

With a getFacesContext(...) like:
  public FacesContext getFacesContext(Object context, Object request,
      Object response, Lifecycle lifecycle) throws FacesException
  {

    if (response instanceof HttpServletResponse)
    {
      HttpServletRequest httpServletRequest = (HttpServletRequest) request;
      if 
(!Boolean.TRUE.equals(httpServletRequest.getAttribute(REQUEST_PARAM_FILTER_CALLED)))
      {
        httpServletRequest.setAttribute(REQUEST_PARAM_FILTER_CALLED,
Boolean.TRUE);
        response = new
RequestParameterResponseWrapper((HttpServletResponse) response);
      }
    }

    return facesContextFactory.getFacesContext(context, request,
response, lifecycle);
  }

Just a random thought.

Thx

-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

Reply via email to