myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Kovalenko <bo...@tagnet.ru>
Subject Re: What am I doing wrong with DEFAULT_SUFFIX?
Date Fri, 14 Oct 2005 10:47:58 GMT
Hello!

	Yes, I want to use .xhtml extension for on disk files instead of .jsp, 
so page should be .jsf->.xhtml mapped.

Dennie de Lange wrote:
> I'm sorry I think I don't understand your question. I thought you would
> like to use .xhtml instead of .jsf, but you like to have .xhtml instead
> of .jsp right? So page is mapped from .jsf -> .xhtml?
> 
> -----Oorspronkelijk bericht-----
> Van: Boris Kovalenko [mailto:boris@tagnet.ru] 
> Verzonden: vrijdag 14 oktober 2005 11:24
> Aan: MyFaces Discussion
> Onderwerp: Re: What am I doing wrong with DEFAULT_SUFFIX?
> 
> Dennie de Lange wrote:
> Hello!
> 
>     The example is very very simple. It works well if extension of files
> 
> is jsp and Faces Servlet is mapped to jsf. When extension is xhtml and 
> as You suggested xhtml is mapped to Faces Servlet I getting exception. 
> So mapping xhtml is wrong (and IMHO really wrong! You are not mapping 
> jsp to Faces Servlet, yes?) May be You try yourself and give me a 
> working example?
> 
> 
>>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:boris@tagnet.ru] 
>>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:boris@tagnet.ru] 
>>>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:boris@tagnet.ru] 
>>>>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
>>
>>
>>
>> 
>>
> 
> Regards,
>     Boris
> 
> 
> 
Regards,
	Boris

Mime
View raw message