Thanks for your help, definitely I will try. -----Original Message----- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Friday, April 07, 2006 9:53 PM To: MyFaces Discussion Subject: Re: MyFaces JSF & Facelets
Yura, The JSP delegation code in Facelets requires that you use prefix mapping for Faces Servlet ("/faces/*"), not suffix mapping. So you'd need to first switch to prefix mapping, then you could start mixing in Facelets pages. -- Adam On 4/7/06, Yura Tkachenko (meta.ua) <[EMAIL PROTECTED]> wrote: > Really thanks for you. > But I cann't use such > <context-param> > <param-name>javax.faces.DEFAULT_SUFFIX</param-name> > <param-value>.jsp</param-value> > </context-param> > Because we have a relly big project which has old jsp files, many jsf pages > based on JSP container and I thought to add Facelets I suppose I could > rewrite a few jsf pages to speed up rendering of this pages, but I suppose > it will throw a lot of collisions. > > Thanks for you help, > Yura. > > -----Original Message----- > From: Mike Kienenberger [mailto:[EMAIL PROTECTED] > Sent: Friday, April 07, 2006 8:27 PM > To: MyFaces Discussion > Subject: Re: MyFaces JSF & Facelets > > 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. > > > > > >