I think you'd also run into terrible problems if/when you used ADF faces,
because you have to declare the View Handler in an ADF specific way, and
unless I'm wrong you can't distinguish between extension types when you do
that.

Jeremy Sager
Data Communications Product Manager
Chesapeake System Solutions
410.356.6805 x120
[EMAIL PROTECTED]

-----Original Message-----
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 07, 2006 1:31 PM
To: MyFaces Discussion
Subject: Re: MyFaces JSF & Facelets

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.

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