I didn't read the documentation on that subject, but the webcontainer
should know where to map .xhtml extension to. <servlet-mapping> is the
directive to do that. If your .xhtml files contain JSF content it should
be mapped to the Faces Servlet. The exception which is thrown complaints
about to many includes. Check your page or try with a simple example. 

-----Oorspronkelijk bericht-----
Van: Boris Kovalenko [mailto:[EMAIL PROTECTED] 
Verzonden: vrijdag 14 oktober 2005 10:56
Aan: MyFaces Discussion
Onderwerp: Re: What am I doing wrong with DEFAULT_SUFFIX?

Dennie de Lange wrote:
Hello!

    Getting exception of javax.servlet.ServletException: too many 
servlet includes `/pages/index.xhtml'
And according to documentation - DEFAULT_SUFFIX maps jsf to xhtml and 
Faces Servlet should get jsf. Isn't ?

>Check your web.xml. .xhtml should be added to the <url-mapping> of the
>Faces Servlet. Something like 
>       <servlet-mapping>
>               <servlet-name>Faces Servlet</servlet-name>
>               <url-pattern>*.xhtml</url-pattern>
>       </servlet-mapping>
>
>Greetz Dennie
>-----Oorspronkelijk bericht-----
>Van: Boris Kovalenko [mailto:[EMAIL PROTECTED] 
>Verzonden: vrijdag 14 oktober 2005 10:40
>Aan: MyFaces Discussion
>Onderwerp: Re: What am I doing wrong with DEFAULT_SUFFIX?
>
>Conway. Fintan (IT Solutions) wrote:
>Hello!
>
>    Tried without success. Getting exception of 
>javax.faces.FacesException: Default suffix must start with a dot!
>
>  
>
>>Hi Boris,
>>
>>Have you tried using 'xhtml' instead of '.xhtml' (notice no '.') in
the
>><param-value>?  Just a guess
>>
>>Fintan
>>
>>-----Original Message-----
>>From: Boris Kovalenko [mailto:[EMAIL PROTECTED] 
>>Sent: 14 October 2005 06:55
>>To: MyFaces Discussion
>>Subject: What am I doing wrong with DEFAULT_SUFFIX?
>>
>>
>>Hello!
>>
>>   I want my pages to be .xhtml extension instead of standard jsp. So 
>>in my web.xml I use
>>   <context-param>
>>       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
>>       <param-value>.xhtml</param-value>
>>   </context-param>
>>
>>And nothing happened. Files not going through MyFaces precompiler and
I
>>    
>>
>
>  
>
>>getting them as is. Where am I wrong? Or may be this is a bug?
>>
>>MyFaces RC2 as of 20051009, resin 3.0.14 standalone
>>
>>With respect,
>>   Boris
>> 
>>
>>    
>>
>Regards,
>    Boris
>
>
>
>  
>
Regards,
    Boris


Reply via email to