myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Nicolucci <>
Subject Re: Implicit navigation issue with Faces Servlet prefix mapping
Date Thu, 10 May 2012 14:12:58 GMT

I'm going to open a JIRA bug for this issue.  I've done a bunch of
debugging and I've narrowed it down.  I'll document my findings in the
issue, I have a couple of questions I
can ask there and we can come to a solution.


Paul Nicolucci

             Leonardo Uribe                                                
             >                                                          To 
                                       MyFaces Development                 
             05/09/2012 07:22          <>            
             AM                                                         cc 
             Please respond to         Re: Implicit navigation issue with  
                 "MyFaces              Faces Servlet prefix mapping        


It seems we have here an inconsistency, probably because the viewId is
supposed to start with /, but it seems the reference implementation
assume viewId without / are valid too. I'll check that part but I
don't have time for now, so please be patient. It will take some time.


Leonardo Uribe

2012/5/9 Paul Nicolucci <>:
> Hello All,
> I've come to a problem and wanted to discuss it with the community to get
> your input and make sure I'm debugging this correctly.
> I have an application which was posted in MyFaces-3530
> (ViewExpiredException.war) which uses a custom ExceptionHandler to deal
> a ViewExpiredException.  Everything looks to be working as expected with
> this when I'm using a Faces Servlet Mapping such
> as the following (suffix mapping):
> <servlet-mapping>
>     <servlet-name>Faces Servlet</servlet-name>
>     <url-pattern>*.jsf</url-pattern>
>   </servlet-mapping>
> However if I use something such as this (prefix mapping):
> <servlet-mapping>
> <servlet-name>Faces Servlet</servlet-name>
> <url-pattern>/f/*</url-pattern>
> </servlet-mapping>
> I get the following exception when doing implicit navigation in my
> Handler such as:
> nav.handleNavigation(fc, null, "viewExpired");  // viewExpired.xhtml
> in the web application
> Exception:
> Caused by: org.apache.myfaces.lifecycle.ViewNotFoundException: A view is
> required to execute RENDER_RESPONSE(6)
> at
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute
> at org.apache.myfaces.lifecycle.LifecycleImpl.render
> at javax.faces.webapp.FacesServlet.service(
> This happens due to the following fix:
> Is this working as designed or a bug?  It seems we are in accordance with
> the Spec, specifically Section 7.5.2, it just seems odd to me that we
> use implicit navigation such as "viewExpired" when we use prefix mapping
> we need
> to use "viewExpired.xhtml", whereas with suffix mapping "viewExpired"
> just fine since we end up using the default facelet suffix (.xhtml) and
> finding the resource.
> Thoughts?
> Thanks,
> Paul Nicolucci

View raw message