Did you try to reference /faces/myfile.jsp as I think the facelets filter
will convert the reference to the correct xhtml file
On 2/2/07, Jeff Bischoff <[EMAIL PROTECTED]> wrote:
What do you redirect to? /faces/myfile.xhtml?
Actually I can't get this working either. I've discovered that "blank
page" coming up is actually my index.faces dummy file! When I view the
source, I see the comment I wrote in there.
So why would it be going there when I commented out the extension
mapping? Does JBoss treats commented-out items in web.xml as if they are
not commented?
Some relevent parts of web.xml:
--------------------------------
<!-- Use Documents Saved as *.xhtml
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>-->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.jsp</param-value>
</context-param>
<context-param>
<param-name>facelets.VIEW_MAPPINGS</param-name>
<param-value>*.xhtml</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!--
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>-->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>pages/public/index.jsp</welcome-file>
</welcome-file-list>
--------------------------------
/pages/public/ contains index.xhtml, index.jsp, and index.faces. For
some reason, index.faces is being served to the client.
Any ideas?
Regards,
Jeff Bischoff
Kenneth L Kurz & Associates, Inc.
Romanowski, Tim wrote:
> Not sure if this fits your needs, but I've accomplished this by using a
> dummy jsp page that redirects to my 'real' index.xhtml file. Index.jspas
> well as index.xhtml are in my root web directory.
>
> <welcome-file-list>
> <welcome-file>
> index.jsp
> </welcome-file>
> </welcome-file-list>
>
>
> Tim
>
>
> -----Original Message-----
> From: Jeff Bischoff [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 02, 2007 1:02 PM
> To: MyFaces Discussion
> Subject: /faces/* servlet mapping and welcome files
>
> Hey guys, quick question:
>
> Does anyone have welcome files working successfully with the /faces/*
> servlet mapping? I previously used a *.faces extension mapping, and had
> welcome files working with a dummy index.faces file. But now I am
> converting to facelets and followed the advice from the archives to get
> them to coexist [1]. Now that I'm using /faces/* I have both facelets
> and JSP working just fine together except my welcome-file doesn't work
> (results in a blank page shown). I've tried different paths combinations
> in the welcome-file-list, with no luck so far. Latest entry is pasted
> below. Thanks for any tips!
>
> <welcome-file-list>
> <!-- OLD <welcome-file>pages/public/index.faces</welcome-file>-->
> <welcome-file>faces/pages/public/index.xhtml</welcome-file>
> </welcome-file-list>
>
> [1] http://www.nabble.com/Facelets-tf2005321.html#a5509212
>
> Regards,
>
> Jeff Bischoff
> Kenneth L Kurz & Associates, Inc.
>
>
--
---
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/djmick_dot_com
http://www.thumpradio.com
---