Everything is working correctly now.  I think the ViewControllerMapper was 
not being set/picked up because I had specified the myFaces 
org.apache.myfaces.webapp.FacesServlet directly instead of 
javax.faces.webapp.FacesServlet. 

The filters are not causing a problem in Websphere Portal environment. The 
only other thing that I had problems with was that my chain configuration 
was disallowing access to .gifs.  I removed the chain listener completely 
from my web.xml and now .gifs are being rendered.  It seems I do not 
necessarily need the chain configuration to make shale/clay/myfaces/portal 
work. 


Rahul Akolkar <[EMAIL PROTECTED]> wrote on 10/13/2005 03:47:25 PM:

> On 10/13/05, Ryan Wynn <[EMAIL PROTECTED]> wrote:
> > I seem to be getting warning "No ViewControllerMapper has been 
configured
> > for this application".
> >
> > This started happening in the portlet environment, not in plain 
servlet
> > environment.
> >
> > First question, should I have to set up a view controller mapper 
instance
> > in the first place because shouldn't Shale pick the default if I don't
> > override? e.g org.apache.shale.view.impl.DefaultViewControllerMapper
> <snip/>
> 
> I believe the intent is to have it be picked up, but that happens in
> the ShaleApplicationFilter which might not be set up correctly for
> your portlet environment (whether you can set it up in depends on what
> environment you're using -- the portlet spec v1.0 doesn't say much
> about filters -- WebSphere Portal, IIRC, has some notion of portlet
> filters).
> 
> >
> > Second question, I looked at the code for ShaleViewHandler.  The
> > getViewControllerMapper method does the following:
> >
> >
> > context.getExternalContext().getApplicationMap().
> get(ShaleConstants.VIEW_MAPPER)
> >
> > Am I wrong or should this be doing something like
> > 
context.getApplication().getVariableResolver().resolveVariable(facesContext,
> > ShaleConstants.VIEW_MAPPER)
> >
> > That way I can override the view controller mapper in my 
faces-config.xml.
> >
> > Right now I am getting null back even though I define it in
> > faces-config.xml under application scope and I think it may be because 
it
> > is not going through the variable resolver.
> >
> <snap/>
> 
> The ShaleViewHandler is merely retrieving what the
> ShaleApplicationFilter has instantiated as the ViewControllerMapper
> (and placed in the application map).
> 
> -Rahul
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to