myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <mkien...@gmail.com>
Subject Re: /faces/* servlet mapping and welcome files
Date Wed, 07 Feb 2007 15:46:25 GMT
Hey Jeff,

The topic of JSF welcome files has been covered extensively on the
facelets users list in the past.  It'd be great if someone would
doument this either in the facelets wiki or the myfaces wiki.

This link provides a number of ways to do it.

http://www.nabble.com/forum/ViewPost.jtp?post=3210994&framed=y

I use prefix mapping and a javascript redirect, but when I get a
chance to revisit it, I'll probably switch over to creating a
placeholder file and using a facelets entry in the welcome-file
section.

index.html:
============
<html>
    <head>
        <script language="javascript">
            location = "./faces/pages/yourStartPage.xhtml";
        </script>
    </head>
    <body>
        ...starting...
    </body>
</html>
============



On 2/7/07, Jeff Bischoff <jbischoff@klkurz.com> wrote:
> Gah, I got frustrated with this attempt. I've been using extensions
> mapping successfully for about a year, and I'm comfortable with that, so
> I've switched back to it. That will simply mean that I have to hurry up
> and convert the rest of the application to facelets to make it all work
> again. :)
>
> Thanks all for the tips!
>
> Jeff Bischoff
> Kenneth L Kurz & Associates, Inc.
>
> Giampaolo Tomassoni wrote:
> > From: Jeff Bischoff [mailto:jbischoff@klkurz.com]
> >> 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,
> >
> > Hi Jeff,
> >
> > I did never manage to have this working with facelets.
> >
> > It is probably a facelets issue. The only solution I see is to do an http filter
in order to detect directory requests and redirect them to the wanted resource.
> >
> > Please note that if you use apache + mod_jk 1.1.20 and attempt to fix this through
the DirectoryIndex directive in Apache, it will not work either: I did place a bug for this
in the apache buglist (http://issues.apache.org/bugzilla/show_bug.cgi?id=41430).
> >
> > Cheers,
> >
> > Giampaolo
> >
> >
> >> Jeff Bischoff
> >> Kenneth L Kurz & Associates, Inc.
> >>
> >>
> >
> >
> >
> >
>
>
>

Mime
View raw message