On 4/7/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> The problem with this approach is the view handler would be facelets
> for all requests, and it would not like .jsp files. The trick would be
> to have a different view handler based on the extension or view. I
> think this has already been discussed in the facelets user group, so
> check the archives.

There's no problem with the approach I provided.  This is the
officially-sanctioned facelets way to do it.  I have successfully used
this in my projects.   The config snippets are taken from a real
application.

> On 4/7/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> > You're better off posting this question to the facelets mailing list.
> >
> > However, I think the answer is that you can do this:
> >
> > Map your facelet requests to *.xhtml.
> > Map your jsp requests to *.jsp.
> >
> > However, you need to change to using prefix mapping "/faces/*" in
> > order for all of this to work together.
> >
> >     <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-mapping>
> >         <servlet-name>FacesServlet</servlet-name>
> >         <url-pattern>/faces/*</url-pattern>
> >     </servlet-mapping>
> >
> > On 4/7/06, Yura Tkachenko (meta.ua) <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > > Hi, I just want to realize impacts: can Facelets works with MyFace JSF. 
> > > For
> > > example:
> > >
> > > I have mapping to *.faces all JSF pages (MyFaces, Tomahawk)
> > > Want to add mapping to Facelets page like *.jsf
> > >
> > >
> > >
> > > Are all my *.faces and *.jsf pages will work?
> > >
> > > I mean in my faces-config.xml file I have
> > >
> > > <faces-config>
> > >
> > >
> > >
> > >   <application>
> > >
> > >     <view-handler>
> > >
> > >       com.sun.facelets.FaceletViewHandler
> > >
> > >     </view-handler>
> > >
> > >   </application>
> > >
> > >
> > >
> > > Is this view handler will touch my *.faces pages?
> > >
> > >
> > >
> > > Thanks,
> > >
> > > Yura.
> > >
> > >
> >
>

Reply via email to