Hello!

I'll try all that I can :) But the main term is Resin 3.0.14 (I wrote I use it) as the container. I have no problems with Tomcat, but on some reasons I need to use Resin. I can't belive I am the only one who use it.

P.S. There is no other filters. Configuration is clean. I'll show it to everyone who'll try to help.

Dennie de Lange wrote:
I've looked at the documentation and you've used the correct method.
Maybe something else is in the way (i.e. another filter for example on
the webserver). Can you try it with some other extension (.jfaces)?
Also: check the latest version of myfaces and see if it works.
-----Oorspronkelijk bericht-----
Van: Boris Kovalenko [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 14 oktober 2005 12:48
Aan: MyFaces Discussion
Onderwerp: Re: What am I doing wrong with DEFAULT_SUFFIX?

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:[EMAIL PROTECTED] 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:[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






Regards,
   Boris




Regards,
        Boris


With respect,
        Boris

Reply via email to